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 trait method with weaker visibility than the parent method it overrides is accepted (php: Access level to C::f() must be public) #421
A trait method with weaker visibility than the parent method it overrides is accepted (php: Access level to C::f() must be public).
Repro
<?phpclass P { publicfunctionf(): int { return1; } }
trait T { privatefunctionf(): int { return2; } }
class C extends P { use T; }
echo"accepted\n";
Expected (php)
Actual (manticore 35461ba2, Darwin arm64)
accepted
Tracking
Known-bug repro: tests/aot/repro/wrong/trait_method_weaker_visibility_than_parent_accepted.php — bash tests/aot/xfail.sh -k trait_method_weaker_visibility_than_parent_accepted 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