mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
2bcf787b74
commit
39b4cbebb3
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue