mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Set $errcontext argument optional to support PHP 8
- Argument is optional and deprecated in PHP 7.2
This commit is contained in:
@@ -65,7 +65,7 @@ class Smarty_Internal_ErrorHandler
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @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;
|
$_is_muted_directory = false;
|
||||||
// add the SMARTY_DIR to the list of muted directories
|
// add the SMARTY_DIR to the list of muted directories
|
||||||
|
Reference in New Issue
Block a user