mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Merge pull request #8789 from cakephp/fix-php7-issue
Port PHP7 fixes to 2.x
This commit is contained in:
commit
66077f9312
1 changed files with 3 additions and 0 deletions
|
@ -1124,6 +1124,9 @@ class CakeRequest implements ArrayAccess {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function offsetExists($name) {
|
public function offsetExists($name) {
|
||||||
|
if ($name === 'url' || $name === 'data') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return isset($this->params[$name]);
|
return isset($this->params[$name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue