mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
26 lines
275 B
Plaintext
26 lines
275 B
Plaintext
|
--TEST--
|
||
|
Edge case: T_STRING<as> as T_STRING<?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
trait TraitA
|
||
|
{
|
||
|
public static function as(){ echo __METHOD__, PHP_EOL; }
|
||
|
}
|
||
|
|
||
|
class Foo
|
||
|
{
|
||
|
use TraitA {
|
||
|
as as try;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Foo::try();
|
||
|
|
||
|
echo PHP_EOL, "Done", PHP_EOL;
|
||
|
|
||
|
--EXPECTF--
|
||
|
TraitA::as
|
||
|
|
||
|
Done
|