Deprecated
Deprecated is a native PHP attribute. It marks a method, function or class constant as available, but soon to be removed.
The Deprecated attribute accepts an argument, that is shown to help users move to an alternative.
<?php
#[Deprecated]
function trumpet() {}
trumpet();
//Deprecated: Function trumpet() is deprecated
#[Deprecated('Use forage instead.')]
function trample() {}
trample();
//Deprecated: Function trample() is deprecated, Use forage instead.
?>