corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
filippo.bertilotti
2024-05-16 eab39248d878763ffc661fafb4be22a52c13a3b6
gestione degli errori personalizzata tramite il codice (parte 102)
1 files modified
12 ■■■■■ changed files
index.php 12 ●●●●● patch | view | raw | blame | history
index.php
@@ -1,6 +1,18 @@
<?php
declare(strict_types= 1);
set_error_handler(function(
    int $errno,
    string $errstr,
    string $errfile,
    int $errline
    ): bool
    {
        throw new ErrorException($errstr,0, $errno, $errfile, $errline);
});
set_exception_handler(function (Throwable $exception) {
    static $show_errors = false;