From ed7fe65156c13e612b6fb59506d2fa7b33a425ee Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 12 Aug 2016 09:49:23 +1200 Subject: [PATCH] BUG Fix usage of $this as closure argument --- tests/parsers/ShortcodeParserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parsers/ShortcodeParserTest.php b/tests/parsers/ShortcodeParserTest.php index 85dcaa3b4..112b1efab 100644 --- a/tests/parsers/ShortcodeParserTest.php +++ b/tests/parsers/ShortcodeParserTest.php @@ -242,7 +242,7 @@ class ShortcodeParserTest extends SapphireTest { $this->parser->parse('') ); - $this->parser->register('2', function($attributes, $content, $this, $tag, $extra) { + $this->parser->register('2', function() { return 'this is 2'; });