-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Unable to use aliased String namespace since 8.2 #11152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I was told the issue was caused by this: |
Hi @InvisibleSmiley! What's the use case for this? This would've failed before as well, just in a different location. |
As I said, my case is about namespaces only. Example (actual things / inheritance etc. in the NS are irrelevant): |
Fine with me, this only came up because someone on Room 11 was doing some weird stuff and not understanding the weird error message that resulted later. Feel free to revert now or I'll do this next week when I get back from holiday. :) |
This reverts commit b9f7123. Fixes phpGH-11152
Description
The following code:
Resulted in this output:
But I expected this output instead:
Note that Foo\Bar\String is just a namespace (part), not a class/interface/trait/enum.
I checked the 8.2 documentation (migration guide, backward incompatible changes, changelog) and it seems to me this was not really intended. Worked fine up until 8.1.x.
PHP Version
8.2.0
Operating System
No response
The text was updated successfully, but these errors were encountered: