Fatal error: Cannot use 'Object' as class name as it is reserved
I'm trying to bake my project but it shows this error. I'm using cakephp 2.5.4 and PHP 7.0.32
I tried to change the lib folder I used the lib folder for 2.8.0 and I tried to change PHP version to 5.6.38 but nothing worked. :(
Class Object
orClass true
or any of the other "reserved" words don't work as class name. It's just part of the "deal" – ArtisticPhoenix Dec 19 '18 at 7:43Object
is only a reservered name as of PHP 7.2. You're probably looking in the wrong place, hence whatever you're changing with regards to the PHP version has no effect. For CakePHP 2.x you need to use the latest 2.10 version for proper PHP 7.2 compatibility. stackoverflow.com/questions/52981403/… – ndm Dec 19 '18 at 11:32