From a2772a17a73e34514491306ef7f5fa9922b99f08 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 16 Oct 2014 15:47:50 +0200 Subject: [PATCH] File: Fix ErrorException::__construct()'s parameters --- library/Icinga/Util/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Util/File.php b/library/Icinga/Util/File.php index b7aff9743..9ce1ec893 100644 --- a/library/Icinga/Util/File.php +++ b/library/Icinga/Util/File.php @@ -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 );