You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JIT] Undefined to null coercion issues for return #16499
Fatal error: Uncaught TypeError: test(): Return value must be of type ?int, null returned in test.php:7
But I expected this output instead:
Warning: Undefined variable $i in %s on line %d
Warning: Undefined variable $i in %s on line %d
NULL
Warning: Undefined variable $i in %s on line %d
Warning: Undefined variable $i in %s on line %d
NULL
Currently, this should emit 4 warnings, due to #16495. That should be changed in the future. Anyway, that's not the issue.
@dstogov I can have a look if you want, but it's going to take me longer. 🙂
Activity
Fix GH-16499: [JIT] Undefined to null coercion issues for return
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'