From d363cb2fc7b7b684652a4c02b77f6d25248a1c76 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 9 Oct 2026 21:20:41 +0800 Subject: [PATCH] test: declare the throwing Parser filter closure as returning `never` --- tests/system/View/ParserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/View/ParserTest.php b/tests/system/View/ParserTest.php index d3a53f3fc480..902c66948768 100644 --- a/tests/system/View/ParserTest.php +++ b/tests/system/View/ParserTest.php @@ -795,7 +795,7 @@ public function testParserRestoresReplacementStateAfterNestedRender(): void public function testParserRestoresReplacementStateAfterFilterException(): void { $exception = new RuntimeException('Filter failed.'); - $this->config->filters['fail'] = static fn (mixed $value): string => throw $exception; + $this->config->filters['fail'] = static fn (mixed $value): never => throw $exception; $this->parser->setData(['first' => 'before', 'second' => 'failure']); try {