Created
April 17, 2018 08:03
-
-
Save zolex/6c0db10df1e41394e559cb041e4e60e8 to your computer and use it in GitHub Desktop.
PHP 7.2 compatibility patch for mdmsoft/yii2-admin 2.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/components/Configs.php b/components/Configs.php | |
| index b6cf6ce..3a210ee 100644 | |
| --- a/components/Configs.php | |
| +++ b/components/Configs.php | |
| @@ -39,7 +39,7 @@ use yii\rbac\ManagerInterface; | |
| * @author Misbahul D Munir <misbahuldmunir@gmail.com> | |
| * @since 1.0 | |
| */ | |
| -class Configs extends \yii\base\Object | |
| +class Configs extends \yii\base\BaseObject | |
| { | |
| const CACHE_TAG = 'mdm.admin'; | |
| diff --git a/models/Assignment.php b/models/Assignment.php | |
| index 50b156a..89b9e91 100644 | |
| --- a/models/Assignment.php | |
| +++ b/models/Assignment.php | |
| @@ -5,7 +5,7 @@ namespace mdm\admin\models; | |
| use mdm\admin\components\Configs; | |
| use mdm\admin\components\Helper; | |
| use Yii; | |
| -use yii\base\Object; | |
| +use yii\base\BaseObject; | |
| /** | |
| * Description of Assignment | |
| @@ -13,7 +13,7 @@ use yii\base\Object; | |
| * @author Misbahul D Munir <misbahuldmunir@gmail.com> | |
| * @since 2.5 | |
| */ | |
| -class Assignment extends Object | |
| +class Assignment extends BaseObject | |
| { | |
| /** | |
| * @var integer User id | |
| diff --git a/models/Route.php b/models/Route.php | |
| index ccc160c..607a6ef 100644 | |
| --- a/models/Route.php | |
| +++ b/models/Route.php | |
| @@ -16,7 +16,7 @@ use yii\helpers\VarDumper; | |
| * @author Misbahul D Munir <misbahuldmunir@gmail.com> | |
| * @since 1.0 | |
| */ | |
| -class Route extends \yii\base\Object | |
| +class Route extends \yii\base\BaseObject | |
| { | |
| const CACHE_TAG = 'mdm.admin.route'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment