public static function warn($subject, $since = null, $suggest = ''): void
    {
        $message = $subject . ' is deprecated';

        if ($since !== null) {
            $since = (string) $since;
            $message .= sprintf(' since %.1f and will be removed in %s.0', $since, $since[0] + 1);
        }

        $message .= '.';

        if ($suggest) {
            $message .= ' ' . $suggest;
        }

        static::raw($message);
    }
public static function warn($subject, $since = null, $suggest = ''): void
    {
        $message = $subject . ' is deprecated';

        if ($since !== null) {
            $since = (string) $since;
            $message .= sprintf(' since %.1f and will be removed in %s.0', $since, $since[0] + 1);
        }

        $message .= '.';

        if ($suggest) {
            $message .= ' ' . $suggest;
        }

        static::raw($message);
    }
public static function warn ( $ subject , $ since = null , $ suggest = '' ) : void { $ message = $ subject . ' is deprecated' ; if ( $ since !== null ) { $ since = ( string ) $ since ; $ message .= sprintf ( ' since %.1f and will be removed in %s.0' , $ since , $ since [ 0 ] + 1 ) ; } $ message .= '.' ; if ( $ suggest ) { $ message .= ' ' . $ suggest ; } static :: raw ( $ message ) ; }
Shortcut for triggering a deprecation warning for a subject.

Examples:
Deprecated::warn('Doing foo');
// triggers warning: "Doing foo is deprecated."

Deprecated::warn('Doing foo', 3.3);
// triggers warning: "Doing foo is deprecated since 3.3 and will be removed in 4.0."

Deprecated::warn('Doing foo', 3.3, 'Do bar instead');
// triggers warning: "Doing foo is deprecated since 3.3 and will be removed in 4.0. Do bar instead."

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