![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #60173 (Wrong error message on reflective trait instantiation) 3: --FILE-- 4: <?php 5: 6: trait foo { } 7: 8: $rc = new ReflectionClass('foo'); 9: $rc->newInstance(); 10: 11: --EXPECTF-- 12: Fatal error: Cannot instantiate trait foo in %s on line %d