keboola / php-component

General library for PHP applications running in Keboola Connection environment
MIT License
0 stars 1 forks source link

incorrect set_error_handler signature #75

Open fprochazka opened 2 years ago

fprochazka commented 2 years ago

the custom error handler

set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext): bool {

must have the $errcontext optional, see https://github.com/getsentry/sentry-php/blob/6bf81be28f8557ce22e16502256a21332478e949/src/ErrorHandler.php#L257-L273

otherwise, the real error is swallowed and the error in error handler is reported instead

image