Documentation

DeprecateTrait

Table of Contents

Methods

deprecate()  : $this
Whether this definition is deprecated, that means it should not be called anymore.

Methods

deprecate()

Whether this definition is deprecated, that means it should not be called anymore.

public final deprecate(string $package, string $version, string $message) : $this
Parameters
$package : string

The name of the composer package that is triggering the deprecation

$version : string

The version of the package that introduced the deprecation

$message : string

The deprecation message to use

Tags
throws
InvalidArgumentException

when the message template is invalid

Return values
$this

        
On this page

Search results