The __get() magic method runs three checks before giving up but the __isset() method only runs two checks. This syncs the logic to ensure that __get() and __isset() are looking at the same possibilities.

This commit is contained in:
Mark Huot 2012-04-13 10:20:34 -03:00
parent 9daa919f4b
commit 49384514ef
1 changed files with 2 additions and 0 deletions

View File

@ -650,6 +650,8 @@ public function __isset($key)
{
if (array_key_exists($key, $this->$source)) return true;
}
if (method_exists($this, $key)) return true;
}
/**