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); } 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);