marlin wrote
That still begs the question of how to squelch warnings on my local machine.
You can find examples here:
https://www.php.net/manual/en/function.error-reporting.php
You can set the error reporting level right in your script, and just change that level when you send to production.
You can also set it in your php.ini file, as Aprelium guided you:
admin wrote
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
This will turn off warnings, notices, deprecation notices, etc.
You can also change your php.ini value for
display_errors. Set it to off and you should be a lot happier.