Merge pull request #8789 from cakephp/fix-php7-issue

Port PHP7 fixes to 2.x
This commit is contained in:
ADmad 2016-05-09 01:39:17 +05:30
commit 66077f9312

View file

@ -1124,6 +1124,9 @@ class CakeRequest implements ArrayAccess {
* @return bool
*/
public function offsetExists($name) {
if ($name === 'url' || $name === 'data') {
return true;
}
return isset($this->params[$name]);
}