mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 572 forks source link

Yii 2.0.13, use deprecated class yii\base\Object #362

Open dimmitri opened 6 years ago

dimmitri commented 6 years ago

The class name yii\base\Object is invalid since PHP 7.2.

Classes (mdm\admin\models\Assignment, mdm\admin\components\Configs, mdm\admin\models\Route) must extend from yii\base\BaseObject.

mdmunir commented 6 years ago

How about yii under 2.0.13?

dimmitri commented 6 years ago

Probably will have to modify composer.json;

 "require": {
        "yiisoft/yii2": "~2.0.13"
},

How about yii under 2.0.13?

Users of older versions can use the old version of the module "yii2-admin".

https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md#upgrade-from-yii-2012

mdmunir commented 6 years ago

https://github.com/mdmsoft/yii2-admin/commit/e9cc1d8adc0e34f3a053d172116c6903c2e3c1fb

kprabowo commented 6 years ago

e9cc1d8

this commit not included in v2.8?

Slamdunk commented 6 years ago

@mdmunir may https://github.com/mdmsoft/yii2-admin/commit/e9cc1d8adc0e34f3a053d172116c6903c2e3c1fb be tagged so we can get this module to work in PHP 7.2?

ravi2357 commented 6 years ago

After PHP 7.2, "Object" was deprecated, So, Just Change "Object" to "BaseObject"

Old version type - use yii\base\Object; New version type - use yii\base\BaseObject;