From 585b745735771e3bb95f8cdcb9476d7b7b4cdeca Mon Sep 17 00:00:00 2001 From: Jan Pecha Date: Mon, 8 Jan 2018 17:13:32 +0100 Subject: [PATCH] Fixed compatibility with PHP 7.2, uses SmartObject instead of Nette\Object --- composer.json | 6 +++--- readme.md | 2 +- src/ImageStorage.php | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index c9483d7..2822ecb 100644 --- a/composer.json +++ b/composer.json @@ -10,9 +10,9 @@ } ], "require": { - "php": ">=5.3.0", - "nette/utils": "^2.3", - "nette/http": "^2.3" + "php": ">=5.6.0", + "nette/utils": "^2.4", + "nette/http": "^2.4" }, "autoload": { "classmap": ["src/"] diff --git a/readme.md b/readme.md index 4a77a8b..53ba2ed 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Image storage for Nette. composer require inteve/simple-image-storage ``` -Library requires PHP 5.3.0 or later. +Library requires PHP 5.6.0 or later. ## Usage diff --git a/src/ImageStorage.php b/src/ImageStorage.php index e9d055d..4c6dc6f 100644 --- a/src/ImageStorage.php +++ b/src/ImageStorage.php @@ -11,8 +11,10 @@ use Nette\Utils\Strings; - class ImageStorage extends Nette\Object + class ImageStorage { + use Nette\SmartObject; + /** only shrinks images */ const SHRINK_ONLY = 1;