|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-05-07 15:23 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2019-05-07 15:23 UTC] nikic@php.net
[2020-06-05 17:11 UTC] nikic@php.net
[2020-06-08 10:59 UTC] nikic@php.net
[2020-06-08 10:59 UTC] nikic@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Description: ------------ Methods may use semi-reserved keywords, however it is not possible to alias a method named "namespace". According to the error, the alias statement somehow becomes equivalent to 'as as bar'. Test script: --------------- <?php trait A { function namespace() {} } class C { use A { namespace as bar; } } Expected result: ---------------- No error. This should be no different than if the method were named 'foo' and then using 'foo as bar'. Actual result: -------------- Fatal error: An alias (bar) was defined for method as(), but this method does not exist in /in/DmNne on line 7