Skip to content

Commit

Permalink
Set $errcontext argument optional to support PHP 8
Browse files Browse the repository at this point in the history
- Argument is optional and deprecated in PHP 7.2
  • Loading branch information
xorti committed Jul 29, 2020
1 parent 5a72624 commit 9e44616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sysplugins/smarty_internal_errorhandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function muteExpectedErrors()
*
* @return bool
*/
public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext)
public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext = [])
{
$_is_muted_directory = false;
// add the SMARTY_DIR to the list of muted directories
Expand Down

0 comments on commit 9e44616

Please sign in to comment.