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
If a class has property without a native type, any child class can't declare the native type. PHP doesn't allow it. Also readonly is not allowed without native type. So Rector should not try to add readonly to child class property.
Bug Report
If a class has property without a native type, any child class can't declare the native type. PHP doesn't allow it. Also
readonly
is not allowed without native type. So Rector should not try to addreadonly
to child class property.Minimal PHP Code Causing Issue
Expected Behaviour
Rector should not add
readonly
tofoo
property in class Bar.Note: Demo site seems to run on PHP 8.0 still. So I couldn't manage to run the rector there. In any case this is the link: https://getrector.org/demo/1ec51e77-1a28-6c06-9386-1f9089bacc07
The text was updated successfully, but these errors were encountered: