The Deprecated attributeIntroduction
This attribute is used to mark functionality as deprecated.
Using deprecated functionality will cause an Class synopsis
final
Deprecated
/* Properties */
public
readonly
stringnull
$message;
public
readonly
stringnull
$since;
/* Methods */
public __construct(stringnull
$message = null , stringnull $since = null )Properties
Examples
Output of the above example in PHP 8.4 is similar to: Deprecated: Function unsafe_function() is deprecated since 1.5, use safe_replacement() instead in example.php on line 9 This is unsafe See Also
|