From 4e831bf113cfdf2edc8b6e94041bf2da9bf6458c Mon Sep 17 00:00:00 2001 From: Thomas Lauria Date: Thu, 8 Apr 2021 16:08:29 +0200 Subject: [PATCH 1/2] Update ParseException.php --- src/QueryPath/ParseException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueryPath/ParseException.php b/src/QueryPath/ParseException.php index 7da7beb2..7b015339 100644 --- a/src/QueryPath/ParseException.php +++ b/src/QueryPath/ParseException.php @@ -36,7 +36,7 @@ public function __construct($msg = '', $code = 0, $file = NULL, $line = NULL) { parent::__construct($msg, $code); } - public static function initializeFromError($code, $str, $file, $line, $cxt) { + public static function initializeFromError($code, $str, $file, $line, $cxt = NULL) { //printf("\n\nCODE: %s %s\n\n", $code, $str); $class = __CLASS__; throw new $class($str, $code, $file, $line); From e7cbe4ef069b4ee44655a1005de15f3ef9a10c77 Mon Sep 17 00:00:00 2001 From: Thomas Lauria Date: Thu, 8 Apr 2021 16:11:42 +0200 Subject: [PATCH 2/2] Update IOException.php --- src/QueryPath/IOException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueryPath/IOException.php b/src/QueryPath/IOException.php index b23b381d..96b32a0c 100644 --- a/src/QueryPath/IOException.php +++ b/src/QueryPath/IOException.php @@ -13,7 +13,7 @@ * @ingroup querypath_core */ class IOException extends \QueryPath\ParseException { - public static function initializeFromError($code, $str, $file, $line, $cxt) { + public static function initializeFromError($code, $str, $file, $line, $cxt = NULL) { $class = __CLASS__; throw new $class($str, $code, $file, $line); }