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
f224849cc6
commit
22ad39e5ae
@ -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++;
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user