From 76ae797a5ba149ebaf813f2cb97ae2a484b55d1f Mon Sep 17 00:00:00 2001 From: mlazovla Date: Wed, 14 Feb 2018 12:03:33 +0100 Subject: [PATCH] Fix compatibility with PHP 7.2, uncompatible with nette 2.3 and less. --- composer.json | 8 ++++---- src/Configuration.php | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index ae3d1b6..a627472 100644 --- a/composer.json +++ b/composer.json @@ -13,12 +13,12 @@ "issues": "https://github.com/XRuff/Navigation/issues" }, "require": { - "nette/application": "~2.3", - "nette/component-model": "~2.2" + "nette/application": "~2.4", + "nette/component-model": "~2.3" }, "require-dev": { - "nette/application": "~2.3", - "nette/component-model": "~2.2", + "nette/application": "~2.4", + "nette/component-model": "~2.3", "vanio/coding-standards": "^0.1@dev" }, "autoload": { diff --git a/src/Configuration.php b/src/Configuration.php index 30034a8..3080396 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -2,10 +2,12 @@ namespace XRuff\Components\Navigation; -use Nette\Object; +use Nette\SmartObject; -class Configuration extends Object +class Configuration { + use SmartObject; + /** @var string $shortSession */ public $shortSession;