Skip to content

Commit 4b775dd

Browse files
committed
Fix GH-16799 test: update expected output for static callables and handle TypeError in stack trace
1 parent d7c5b32 commit 4b775dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Zend/tests/gh16799.phpt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ Test::test();
1515
--EXPECTF--
1616
Fatal error: Uncaught Exception: Use of "static" in callables is deprecated in %s:%d
1717
Stack trace:
18-
#0 %s(%d): {closure:%s:%d}(8192, 'Use of "static"...', %s, %d)
18+
#0 %s(%d): {closure:%s}(8192, 'Use of "static"%s', '%s', %d)
1919
#1 %s(%d): Test::test()
2020
#2 {main}
21+
22+
Next TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, (null) in %s:%d
23+
Stack trace:
24+
#0 %s(%d): Test::test()
25+
#1 {main}
2126
thrown in %s on line %d

0 commit comments

Comments
 (0)