Skip to content

Commit

Permalink
Fixed compatibility with PHP 7.2, uses SmartObject instead of Nette\O…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
janpecha committed Jan 8, 2018
1 parent 7b769d5 commit 585b745
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"]
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 585b745

Please sign in to comment.