Search code examples
pimcore

Pimcore: Cannot use Pimcore\Model\Object after update to Pimcore 4


After updating Pimcore to version 5 I am getting:

Cannot use Pimcore\Model\Object as Object because 'Object' is a special class name in ... 

somebody had the same problem please help.


Solution

  • This is caused by the fact that Object is a reserved word in PHP 7.2