File: Fix ErrorException::__construct()'s parameters
This commit is contained in:
parent
d475ccd569
commit
a2772a17a7
|
@ -131,7 +131,7 @@ class File extends SplFileObject
|
||||||
set_error_handler(
|
set_error_handler(
|
||||||
function ($errno, $errstr, $errfile, $errline) {
|
function ($errno, $errstr, $errfile, $errline) {
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
throw new ErrorException($errno, $errstr, $errfile, $errline);
|
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
|
||||||
},
|
},
|
||||||
E_WARNING
|
E_WARNING
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue