Re: Require non-absolute trait method references to be unambiguous
| From: | Côme Chilliet | Date: | Tue, 03 Mar 2020 15:05:47 +0000 |
| Subject: | Re: Require non-absolute trait method references to be unambiguous | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108826@lists.php.net to get a copy of this message | ||
Le mardi 3 mars 2020, 15:11:27 CET Nikita Popov a écrit :
> As the error message indicates, the ambiguity is resolved by writing
>
> use T1, T2 {
> T1::func as renamedFunc;
> // or
> T2::func as renamedFunc;
> }
>
> depending on which of those you actually meant.
Is that valid in PHP-7 as well?
--
Côme Chilliet
FusionDirectory - https://www.fusiondirectory.org