5.3 array syntax

This commit is contained in:
Phil Betley 2016-06-16 08:54:24 -04:00
parent f51422ad8d
commit b011e6f157
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ class TemplateProcessor
*/
protected function indexClonedVariables($count, $xmlBlock)
{
$results = [];
$results = array();
for ($i = 1; $i <= $count; $i++) {
$results[] = preg_replace('/\$\{(.*?)\}/', '\${\\1#' . $i . '}', $xmlBlock);
}