1--TEST--
2Edge case: T_STRING<insteadof> insteadof T_STRING<?>
3--FILE--
4<?php
5
6trait TraitA
7{
8    public static function insteadof(){ echo __METHOD__, PHP_EOL; }
9}
10
11trait TraitB
12{
13    public static function insteadof(){ echo __METHOD__, PHP_EOL; }
14}
15
16class Foo
17{
18    use TraitA , TraitB {
19        TraitB::insteadof
20            insteadof TraitA;
21    }
22}
23
24Foo::insteadof();
25
26echo PHP_EOL, "Done", PHP_EOL;
27--EXPECTF--
28TraitB::insteadof
29
30Done
31