From 22ad39e5aea301fa932894d444191dd6ef6389af Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 26 Oct 2016 14:31:45 +1300 Subject: [PATCH] FIX: Fix SSViewerTest in PHP7 PHP7 is a bit more picky about passing values by reference. --- tests/view/SSViewerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/view/SSViewerTest.php b/tests/view/SSViewerTest.php index 440e3fdc0..62cd678bc 100644 --- a/tests/view/SSViewerTest.php +++ b/tests/view/SSViewerTest.php @@ -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++; } );