Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot use yii\base\Object as Object because 'Object' is a special class name' #485

Open
fat2fast opened this issue Jun 22, 2024 · 0 comments

Comments

@fat2fast
Copy link

I get error when run command

yii migrate --migrationPath=@mdm/admin/migrations

Detail Error :

PHP Fatal error: Cannot use yii\base\Object as Object because 'Object' is a special class name in /app/vendor/mdmsoft/yii2-admin/classes/Configs.php on line 9

PHP Compile Error 'yii\base\ErrorException' with message 'Cannot use yii\base\Object as Object because 'Object' is a special class name'

Yii2 since 2.0.13 : the class name Object is invalid since PHP 7.2

My version is :

  • php : 8.1
  • yiisoft/yii2 : 2.0.50
  • mdmsoft/yii2-admin : 3.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant