From 26a1f27b54c20d3836f49618761b148802c5e7d4 Mon Sep 17 00:00:00 2001 From: Igor Chepurnoy Date: Mon, 15 Jan 2018 17:49:55 +0200 Subject: [PATCH] Added compatibility with php 7.2 --- composer.json | 6 +++--- models/AssignmentModel.php | 4 ++-- models/RouteModel.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 57b9ef2..919b32b 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "require": { "php": ">=7.0.0", - "yiisoft/yii2": "~2.0.10", - "2amigos/yii2-arrayquery-component": "*", - "yiisoft/yii2-jui": "*" + "yiisoft/yii2": "~2.0.13", + "2amigos/yii2-arrayquery-component": "~1.0", + "yiisoft/yii2-jui": "~2.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "~2.0", diff --git a/models/AssignmentModel.php b/models/AssignmentModel.php index 8e1338d..b60552c 100644 --- a/models/AssignmentModel.php +++ b/models/AssignmentModel.php @@ -3,8 +3,8 @@ namespace yii2mod\rbac\models; use Yii; +use yii\base\BaseObject; use yii\base\InvalidConfigException; -use yii\base\Object; use yii\web\IdentityInterface; /** @@ -12,7 +12,7 @@ * * @package yii2mod\rbac\models */ -class AssignmentModel extends Object +class AssignmentModel extends BaseObject { /** * @var IdentityInterface diff --git a/models/RouteModel.php b/models/RouteModel.php index fdc463b..e6117e8 100755 --- a/models/RouteModel.php +++ b/models/RouteModel.php @@ -3,9 +3,9 @@ namespace yii2mod\rbac\models; use Yii; +use yii\base\BaseObject; use yii\base\Controller; use yii\base\Module; -use yii\base\Object; use yii\caching\TagDependency; use yii\helpers\VarDumper; @@ -14,7 +14,7 @@ * * @package yii2mod\rbac\models */ -class RouteModel extends Object +class RouteModel extends BaseObject { /** * @var string cache tag