- date: documentation ( source)
<?php
trait ExampleTrait
{
public function test()
{
$me = static::class; // OK
$not_me = static::class . 'IsAwesome'; // OK
$day_me = static::class . date('Ymd'); // OK
$array_me = [static::class]; // BOOM
}
}