Skip to content

Commit 85917a7

Browse files
authored
test: declare the throwing Parser filter closure as returning never (#10607)
1 parent 9f3374f commit 85917a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/system/View/ParserTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public function testParserRestoresReplacementStateAfterNestedRender(): void
795795
public function testParserRestoresReplacementStateAfterFilterException(): void
796796
{
797797
$exception = new RuntimeException('Filter failed.');
798-
$this->config->filters['fail'] = static fn (mixed $value): string => throw $exception;
798+
$this->config->filters['fail'] = static fn (mixed $value): never => throw $exception;
799799
$this->parser->setData(['first' => 'before', 'second' => 'failure']);
800800

801801
try {

0 commit comments

Comments
 (0)