diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c48f8..d2f4e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Compress Changelog -## 1.0.2 - 2019-11-20 +## 1.0.3 - 2019-11-22 +### Fixed +- Improved compatibility with PHP 7.0.x (again-again) + +## 1.0.2 - 2019-11-21 ### Fixed - Improved compatibility with PHP 7.0.x (again) diff --git a/composer.json b/composer.json index f72dc38..9d970ed 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "venveo/craft-compress", "description": "Create smart zip files from Craft assets on the fly", "type": "craft-plugin", - "version": "1.0.2", + "version": "1.0.3", "keywords": [ "craft", "cms", diff --git a/src/services/Compress.php b/src/services/Compress.php index 4a5e820..15fdd21 100644 --- a/src/services/Compress.php +++ b/src/services/Compress.php @@ -108,7 +108,7 @@ public function getArchiveModelForQuery($query, $lazy = false, $filename = null) } } - public function createArchiveRecord($assets, $archiveAsset = null): ArchiveRecord + public function createArchiveRecord($assets, $archiveAsset = null) { $archive = $this->createArchiveRecords($assets, $archiveAsset); return $archive; @@ -199,7 +199,7 @@ public function createArchiveAsset(ArchiveRecord $archiveRecord) * @throws \yii\base\InvalidConfigException * @throws \yii\db\Exception */ - private function createArchiveRecords($zippedAssets, $asset, $archiveRecord = null): ArchiveRecord + private function createArchiveRecords($zippedAssets, $asset, $archiveRecord = null) { if (!$archiveRecord instanceof ArchiveRecord) { $archiveRecord = new ArchiveRecord(); @@ -259,7 +259,7 @@ private function getHashForAssets($assets): string * @param $hash * @return ArchiveRecord|null */ - private function getArchiveRecordByHash($hash): ArchiveRecord + private function getArchiveRecordByHash($hash) { return ArchiveRecord::findOne(['hash' => $hash]); } @@ -269,7 +269,7 @@ private function getArchiveRecordByHash($hash): ArchiveRecord * * @param Asset $asset */ - public function handleAssetUpdated(Asset $asset): void + public function handleAssetUpdated(Asset $asset) { // Get the files this affects and the archives. We're just going to // delete the asset for the archive to prompt it to regenerate.