Dynamic property suggestions in classes from different namespaces #9270
-
|
Please have a look at this Rector: Why does the second class have a dynamic property added and the first doesn't? My estimation is that neither should have a dynamic property added since the property is well-defined in the base class. Interestingly, the differing namespaces seem to be important: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi, thanks for reporting. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is failing because of the nested namespace being interpreted as 'Beta\Alpha\X'. If I add a "use" statement, the test passes: |
Beta Was this translation helpful? Give feedback.
-
|
Inner namespace use will append existing namespace, to make it correctly apply, add use statement, see https://3v4l.org/rCBEu#vnull The previous part skipped due to pointed to "unkown class parent", so just skipped |
Beta Was this translation helpful? Give feedback.
Inner namespace use will append existing namespace, to make it correctly apply, add use statement, see https://3v4l.org/rCBEu#vnull
The previous part skipped due to pointed to "unkown class parent", so just skipped