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
getDefaultValue() of a plain function's parameter throws "Failed to retrieve the default value" (methods work) #197
getDefaultValue() of a plain function's parameter throws "Failed to retrieve the default value" (methods work).
Repro
<?phpnamespaceN;
class K {}
functionf(?K$b = null, string$c = 'x') {}
foreach ((new \ReflectionFunction('N\f'))->getParameters() as$p) {
echovar_export($p->getDefaultValue(), true), "\n";
}
Expected (php)
NULL
'x'
Actual (manticore 2e174c5c, Darwin arm64)
[exit code 255]
PHP Fatal error: Uncaught ReflectionException: Internal error: Failed to retrieve the default value
Tracking
Known-bug repro: tests/aot/repro/wrong/reflection_function_param_default_unavailable.php — bash tests/aot/xfail.sh -k reflection_function_param_default_unavailable 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
Promote the 14 xfail repros that pass now and drop 9 stale repros who…
Compile and serve a Symfony app natively: ownership/inference fixes, …