diff --git a/tests/system/View/ParserTest.php b/tests/system/View/ParserTest.php index a8e79299a1c1..5d81e177ee66 100644 --- a/tests/system/View/ParserTest.php +++ b/tests/system/View/ParserTest.php @@ -787,7 +787,7 @@ public function testParserPluginNoMatches(): void public function testParserPluginNoParams(): void { - $this->parser->addPlugin('hit:it', static fn ($str) => str_replace('here', 'Hip to the Hop', $str), true); + $this->parser->addPlugin('hit:it', static fn (string $str): string => str_replace('here', 'Hip to the Hop', $str), true); $template = '{+ hit:it +} stuff here {+ /hit:it +}';