Skip to content

2.23.0

Choose a tag to compare

@samsonasik samsonasik released this 16 Dec 03:21
· 379 commits to master since this release
2.23.0
6473592
  • added ability to exclude specific PHP E_* error and Exception with only for specific message provided. The exclude configuration can be like the following:
// excluded php errors ( http://www.php.net/manual/en/errorfunc.constants.php )
'exclude-php-errors' => [

    // can be specific error
    \E_USER_DEPRECATED,

    // can be specific error with specific message
    [\E_WARNING, 'specific error message'],

],

// excluded exceptions
'exclude-exceptions' => [

    // can be an Exception class or class extends Exception class
    \App\Exception\MyException::class,

    // can be specific exception with specific message
    [\RuntimeException::class, 'specific exception message'],

    // or specific Error class with specific message
    [\Error::class, 'specific error message'],

],