Everything on error-handling.
3 articles tagged error-handling, sorted newest first.
fopen() Returned false. Why? PHP 8.6's Stream Error API
PHP 8.6 finally gives streams a structured error model. Here's how to move a Laravel file helper off @fopen() and error_get_last() onto StreamException.
Who Owns the Error Handler? PHP 8.5's get_error_handler() and get_exception_handler()
PHP 8.5 finally lets you read the current error and exception handler without setting one first. Here is how to use it to find whatever is swallowing your exceptions.
Stop Wrapping Everything in try/catch: Renderable and Reportable Exceptions in Laravel 13
Your controllers are full of the same three catch blocks. Move the response into the exception's render() method and the log context into context(), and most of them disappear.