Error reporting is disabled server wide. But for a development project, we need it turned on. Adding a php.ini file with the following directives will get the job done:
display_errors = off log_errors = On error_log = "error.log"
This will cause PHP to write out the error to a file in the same directory as the script called error.log. Adjust to your liking.
Another option, is to set the display_errors flag to true. This is not a recommended practice as it can expose sensitive information that should never be sent to clients. In a closed dev environment though it can be handy especially if you do not have a way to easily tail the log file.