fix optional parameters of phpErrHandler

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2020-11-27 14:07:01 +01:00
parent 5b85a1c183
commit bde87950a5

View File

@@ -112,7 +112,7 @@ class PhpHelper
* *
* @return void|boolean * @return void|boolean
*/ */
public static function phpErrHandler($errno, $errstr, $errfile, $errline, $errcontext) public static function phpErrHandler($errno, $errstr, $errfile, $errline, $errcontext = array())
{ {
if (! (error_reporting() & $errno)) { if (! (error_reporting() & $errno)) {
// This error code is not included in error_reporting // This error code is not included in error_reporting
@@ -398,7 +398,7 @@ class PhpHelper
* @param array $global * @param array $global
* @param \voku\helper\AntiXSS $antiXss * @param \voku\helper\AntiXSS $antiXss
*/ */
public static function cleanGlobal(&$global = [], &$antiXss) public static function cleanGlobal(&$global, &$antiXss)
{ {
if (isset($global) && ! empty($global)) { if (isset($global) && ! empty($global)) {
$tmp = $global; $tmp = $global;