FriendsOfCake / crud

Production-grade rapid controller development with built in love for API and Search
https://crud.readthedocs.io/en/latest/
MIT License
375 stars 146 forks source link

Issue with CRUD under PHP 7.2.4 and Crud 5.0.0 #599

Closed docelmo closed 6 years ago

docelmo commented 6 years ago

I was using http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/ as a tutorial to build a .net application to communicate with my CakePHP 3 web app. I noticed there was another issue listed and closed. I couldnt find anything in there to help me. I am getting this error..

Fatal error: Cannot use Crud\Core\Object as Object because 'Object' is a special class name in C:\Users\XXX\Desktop\Git Repository\OT-github\vendor\friendsofcake\crud\src\Listener\BaseListener.php on line 4

I havent dove into the code to try and fix it but I figured I may have done something wrong.. So here we are..

ADmad commented 6 years ago

Upgrade to latest 5.x release.

rekkitcwts commented 5 years ago

I encountered the same issue. The library works when running my own app locally, but when deployed to Heroku, it gives the same error that says "Fatal error: Cannot use Crud\Core\Object as Object because 'Object' is a special class name in /app/vendor/friendsofcake/crud/src/Listener/BaseListener.php on line 4"

Here is the URL that I tested. I already used the latest 5.x release.