<?php
trait StaticExample {
public static function doSomething() {
return 'Doing something';
}
}
class Example {
use StaticExample;
}
Example::doSomething();
StaticExample::doSomething();
Deprecated: Calling static trait method StaticExample::doSomething is deprecated, it should only be called on a class using the trait in /in/r636f on line 13