From 39b4cbebb368757e740da9c0743abb211a5509cd Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 8 May 2016 15:36:28 -0400 Subject: [PATCH] Port PHP7 fixes to 2.x Port the fixes @ADmad did in 8f150dc5 to 2.x so those builds start to pass once again. --- lib/Cake/Network/CakeRequest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Network/CakeRequest.php b/lib/Cake/Network/CakeRequest.php index 8bd2b3c50..4b266cb83 100644 --- a/lib/Cake/Network/CakeRequest.php +++ b/lib/Cake/Network/CakeRequest.php @@ -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]); }