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
A nullsafe call with a variable method name on null ($n?->$h(1)) does not yield null. #391
A nullsafe call with a variable method name on null ($n?->$h(1)) does not yield null.
Repro
<?php$n = null;
$h = "m";
var_dump($n?->$h(1));
Expected (php)
NULL
Actual (manticore 96d0daa4, Darwin arm64)
float(0)
Tracking
Known-bug repro: tests/aot/repro/wrong/nullsafe_dynmethod_null.php — bash tests/aot/xfail.sh -k nullsafe_dynmethod_null reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Activity