Skip to content

Commit dd156dc

Browse files
Merge branch '7.0' into 7.1
* 7.0: Fix CI Bump ext-redis in CI on PHP >= 8.4 Adjust pretty name of closures on PHP 8.4 implement NodeVisitorInterface instead of extending AbstractNodeVisitor sync .github/expected-missing-return-types.diff skip test assertions that are no longer valid with PHP >= 8.2.18/8.3.5
2 parents 29dc30b + 9650b00 commit dd156dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/LazyStringTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testReturnTypeError()
3939
$s = LazyString::fromCallable(fn () => []);
4040

4141
$this->expectException(\TypeError::class);
42-
$this->expectExceptionMessage('Return value of '.__NAMESPACE__.'\{closure}() passed to '.LazyString::class.'::fromCallable() must be of the type string, array returned.');
42+
$this->expectExceptionMessageMatches('{^Return value of .*\{closure.*\}\(\) passed to '.preg_quote(LazyString::class).'::fromCallable\(\) must be of the type string, array returned\.$}');
4343

4444
(string) $s;
4545
}

0 commit comments

Comments
 (0)