Port PHP7 fixes to 2.x

Port the fixes @ADmad did in 8f150dc5 to 2.x so those builds start to
pass once again.
This commit is contained in:
mark_story 2016-05-08 15:36:28 -04:00
parent 2bcf787b74
commit 39b4cbebb3

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]);
}