Set $errcontext argument optional to support PHP 8

- Argument is optional and deprecated in PHP 7.2
This commit is contained in:
Jorge Sá Pereira
2020-07-29 23:24:53 +01:00
parent 5a72624380
commit e12895359b

View File

@@ -65,7 +65,7 @@ class Smarty_Internal_ErrorHandler
*
* @return bool
*/
public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext)
public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext = array())
{
$_is_muted_directory = false;
// add the SMARTY_DIR to the list of muted directories