[php-src] Issue #11152: Unable to use aliased String namespace since 8.2

From: Date: Fri, 28 Apr 2023 08:30:31 +0000
Subject: [php-src] Issue #11152: Unable to use aliased String namespace since 8.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244295@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11152 Author: InvisibleSmiley ### Description The following code: ```php <?php use Foo\Bar\String as MyString; ``` Resulted in this output: ``` Fatal error: Cannot alias 'Foo\Bar\String' as it is a built-in type in ... on line 3 ``` 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_

« previous php.bugs (#244295) next »