mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix usage of $this as closure argument
This commit is contained in:
parent
988af4582d
commit
ed7fe65156
@ -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';
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user