Create an error logging middleware and return proper error responses.
Note:
error_reporting(E_STRICT); causes PHP Fatal error: Declaration of RideTimeServer\\API\\Endpoints\\Endpoint::__construct(RideTimeServer\\API\\Endpoints\\EntityManager $entityManager) must be compatible with RideTimeServer\\API\\Endpoints\\EndpointInterface::__construct(Doctrine\\ORM\\EntityManager $entityManager) in /home/kachna/workspace/projects/ridetime-server/src/API/Endpoints/UserEndpoint.php on line 9 to be silent (no log, no response, just code 500)
Create an error logging middleware and return proper error responses.
Note:
error_reporting(E_STRICT);
causesPHP Fatal error: Declaration of RideTimeServer\\API\\Endpoints\\Endpoint::__construct(RideTimeServer\\API\\Endpoints\\EntityManager $entityManager) must be compatible with RideTimeServer\\API\\Endpoints\\EndpointInterface::__construct(Doctrine\\ORM\\EntityManager $entityManager) in /home/kachna/workspace/projects/ridetime-server/src/API/Endpoints/UserEndpoint.php on line 9
to be silent (no log, no response, just code 500)