mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Adding warnings to newly deprecated methods.
This commit is contained in:
parent
bd350e95b6
commit
046d7c75d0
4 changed files with 11 additions and 0 deletions
|
@ -280,6 +280,7 @@ class CookieComponent extends Object {
|
|||
* @deprecated use delete()
|
||||
**/
|
||||
function del($key) {
|
||||
trigger_error('Deprecated method, use CookieComponent::delete instead', E_USER_WARNING);
|
||||
return $this->delete($key);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue