Merge pull request #5886 from open-sausages/pulls/4.0/fix-shortcode-test

BUG Fix usage of $this as closure argument
This commit is contained in:
Hamish Friedlander 2016-08-12 06:43:42 +07:00 committed by GitHub
commit 3125852648

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';
});