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
Hooks on constructor promoted properties without visibility are ignored #15438
Shouldn't promoted properties have visibility? In this case it's not a promoted property, but a normal constructor argument to which properties (hooks) cannot be applied. IMHO
Activity
SerafimArts commentedon Aug 16, 2024
Shouldn't promoted properties have visibility? In this case it's not a promoted property, but a normal constructor argument to which properties (hooks) cannot be applied. IMHO
iluuu1994 commentedon Aug 16, 2024
Not necessarily.
readonlyis a valid cpp modifier.SerafimArts commentedon Aug 16, 2024
Got it, then the presence of properties (hooks) as well as access modifiers makes the arguments a promoted property. Didn't think about that, thanks
Fix param with hooks but no visibility not treated as cpp (phpGH-15442)