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
RemoveDefaultValueFromAssignedPropertyRector does not work with nested conditional assignments #9957
the rule RemoveDefaultValueFromAssignedPropertyRector does not work with nested conditional assignments. The default value should only be removed if it is guaranteed that the property will be assigned a value in the constructor. The current change results in the error: Fatal error: Uncaught Error: Typed property DemoFile::$a must not be accessed before initialization in
Activity
TomasVotruba commentedon Nov 3, 2026
Thank you for reporting
Fixed in rectorphp/rector-src#8915