BUG Fix usage of $this as closure argument

This commit is contained in:
Damian Mooyman 2016-08-12 09:49:23 +12:00
parent 988af4582d
commit ed7fe65156

View File

@ -242,7 +242,7 @@ class ShortcodeParserTest extends SapphireTest {
$this->parser->parse('<script>[2]</script>')
);
$this->parser->register('2', function($attributes, $content, $this, $tag, $extra) {
$this->parser->register('2', function() {
return 'this is 2';
});