You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to run my migrations on a PHP 7 environment.
It failed with the following message:
Cake Migration Shell
---------------------------------------------------------------
Running migrations:
PHP Fatal error: Class 'Object' not found in /var/www/html/Plugin/Migrations/Lib/CakeMigration.php on line 17
Fatal error: Class 'Object' not found in /var/www/html/Plugin/Migrations/Lib/CakeMigration.php on line 17
Fatal Error Error: Class 'Object' not found in [/var/www/html/Plugin/Migrations/Lib/CakeMigration.php, line 17]
Tried to run my migrations on a PHP 7 environment.
It failed with the following message:
Object
is a reserved word as of PHP 7:http://php.net/manual/en/reserved.other-reserved-words.php
It is used in
migrations/Lib/CakeMigration.php
Line 17 in 5238a8a
The CakePHP core fixed that by renamit (& aliasing it) it to
CakeObject
in https://github.com/cakephp/cakephp/blob/7207d8f16a1cf2ba7e5932fb2e7941a87e53e5e6/lib/Cake/Core/Object.php#L17-L18The text was updated successfully, but these errors were encountered: