File: Fix ErrorException::__construct()'s parameters

This commit is contained in:
Eric Lippmann 2014-10-16 15:47:50 +02:00
parent d475ccd569
commit a2772a17a7
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class File extends SplFileObject
set_error_handler(
function ($errno, $errstr, $errfile, $errline) {
restore_error_handler();
throw new ErrorException($errno, $errstr, $errfile, $errline);
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
},
E_WARNING
);