mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
adding magic method__isset() for overloaded properties
This commit is contained in:
parent
1d333fd8b7
commit
929a40364f
1 changed files with 16 additions and 6 deletions
|
@ -789,6 +789,16 @@ class View extends Object {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic isset check for deprecated attributes.
|
||||
*
|
||||
* @param string $name Name of the attribute to check.
|
||||
* @return boolean
|
||||
*/
|
||||
public function __isset($name) {
|
||||
return isset($this->name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interact with the HelperCollection to load all the helpers.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue