php5 compat syntax

This commit is contained in:
Simon Wisselink
2020-09-11 00:39:17 +02:00
parent 818aa3c3da
commit 62dc42b0c5
4 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ class MuteExpectedErrorsTest extends PHPUnit_Smarty
{ {
$this->cleanDirs(); $this->cleanDirs();
} }
public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = []) public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = array())
{ {
$this->_errors[] = $errfile . ' line ' . $errline; $this->_errors[] = $errfile . ' line ' . $errline;
} }

View File

@@ -275,7 +275,7 @@ class PluginFunctionHtmlCheckboxesTest extends PHPUnit_Smarty
protected $_errors = array(); protected $_errors = array();
public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = []) public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = array())
{ {
$this->_errors[] = $errstr; $this->_errors[] = $errstr;
} }

View File

@@ -369,7 +369,7 @@ class PluginFunctionHtmlOptionsTest extends PHPUnit_Smarty
protected $_errors = array(); protected $_errors = array();
public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = []) public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = array())
{ {
$this->_errors[] = $errstr; $this->_errors[] = $errstr;
} }

View File

@@ -275,7 +275,7 @@ class PluginFunctionHtmlRadiosTest extends PHPUnit_Smarty
protected $_errors = array(); protected $_errors = array();
public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = []) public function error_handler($errno, $errstr, $errfile, $errline, $errcontext = array())
{ {
$this->_errors[] = $errstr; $this->_errors[] = $errstr;
} }