FIX: Fix SSViewerTest in PHP7

PHP7 is a bit more picky about passing values by reference.
This commit is contained in:
Sam Minnee 2016-10-26 14:31:45 +13:00
parent f224849cc6
commit 22ad39e5ae

View File

@ -1491,7 +1491,7 @@ EOC;
$parser = new SSTemplateParser();
$parser->addClosedBlock(
'test',
function (&$res) use (&$count) {
function ($res) use (&$count) {
$count++;
}
);
@ -1507,7 +1507,7 @@ EOC;
$parser = new SSTemplateParser();
$parser->addOpenBlock(
'test',
function (&$res) use (&$count) {
function ($res) use (&$count) {
$count++;
}
);