Current Travis-CI PHP7 builds throw the following error when executing the following code:
PHP 7 Fatal error: static::class cannot be used for compile-time class name resolution
trait EloquentValidatingTrait
{
// Some declarations skipped
/**
* Eloquent will call this on model boot
*/
public static function bootEloquentValidatingTrait()
{
// Calling Model::saving() and asking it to execute assertIsValid() before model is saved into database
$savingCallable = [static::class, 'saving'];
$validationCallable = [static::class, 'assertIsValid'];
forward_static_call($savingCallable, $validationCallable);
}
Is that a temporary bug or a future feature I missed? Notes below this RFC says it should work (and it does in 5.5 and 5.6).