mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Fix SSViewerTest in PHP7
PHP7 is a bit more picky about passing values by reference.
This commit is contained in:
parent
44b65429f1
commit
7b44fc7bce
@ -1551,7 +1551,7 @@ EOC;
|
|||||||
$parser = new SSTemplateParser();
|
$parser = new SSTemplateParser();
|
||||||
$parser->addClosedBlock(
|
$parser->addClosedBlock(
|
||||||
'test',
|
'test',
|
||||||
function (&$res) use (&$count) {
|
function ($res) use (&$count) {
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -1567,7 +1567,7 @@ EOC;
|
|||||||
$parser = new SSTemplateParser();
|
$parser = new SSTemplateParser();
|
||||||
$parser->addOpenBlock(
|
$parser->addOpenBlock(
|
||||||
'test',
|
'test',
|
||||||
function (&$res) use (&$count) {
|
function ($res) use (&$count) {
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user