<?php error_reporting(E_ALL | E_STRICT);
trait T {
abstract public static function bar();
}
class Foo {
use T;
public static function bar()
{
var_dump("bar");
}
}
var_dump(new ReflectionClass('T'));
(new Foo)->bar();
Strict Standards: Static function T::bar() should not be abstract in /in/mR01Z on line 5
object(ReflectionClass)#1 (1) {
["name"]=>
string(1) "T"
}
string(3) "bar"