mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
php5 compat syntax
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user