Dynamic property suggestions in classes from different namespaces #9270
-
Please have a look at this Rector: https://getrector.com/demo/9fc3876b-d96e-4d69-a694-4545c4bc1b00 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: https://getrector.com/demo/eaa29f97-7c93-4265-8aea-8423ed8f2b70 |
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: https://getrector.com/demo/56620ae3-b726-4688-bfb3-c2d441d87315 |
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