Re: Require non-absolute trait method references to be unambiguous

From: Date: Tue, 03 Mar 2020 15:09:07 +0000
Subject: Re: Require non-absolute trait method references to be unambiguous
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-108827@lists.php.net to get a copy of this message
On Tue, Mar 3, 2020 at 4:06 PM Côme Chilliet < come.chilliet@fusiondirectory.org> wrote: > 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? > Yes, this is valid in PHP 7. Nikita

« previous php.internals (#108827) next »