public static function cls($class, $since = null, $suggest = null): void
    {
        if ($suggest && preg_match('/\s/', $suggest) === 0) {
            $suggest = ltrim($suggest, '\\');
            $suggest = "Use ${suggest} instead.";
        }
        $class = ltrim($class, '\\');

        static::warn($class, $since, $suggest);
    }
public static function cls($class, $since = null, $suggest = null): void
    {
        if ($suggest && preg_match('/\s/', $suggest) === 0) {
            $suggest = ltrim($suggest, '\\');
            $suggest = "Use ${suggest} instead.";
        }
        $class = ltrim($class, '\\');

        static::warn($class, $since, $suggest);
    }
public static function cls ( $ class , $ since = null , $ suggest = null ) : void { if ( $ suggest && preg_match ( '/\s/' , $ suggest ) === 0 ) { $ suggest = ltrim ( $ suggest , '\\' ) ; $ suggest = "Use ${suggest} instead." ; } $ class = ltrim ( $ class , '\\' ) ; static :: warn ( $ class , $ since , $ suggest ) ; }
Shortcut for triggering a deprecation warning for a class.

@param string     $class   The class that is deprecated
@param float|null $since   The version it was deprecated in
@param string     $suggest A class or suggestion of what to use instead
Shortcut for triggering a deprecation warning for a class .