mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
zend/Registry: Don't override method offsetExists()
It's not possible to use `array_key_exists()` on objects anymore (https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.array-key-exists-objects) and since the referenced bug (http://bugs.php.net/bug.php?id=40442) only applied to PHP 5.2.0 it's now obsolete.
This commit is contained in:
parent
d34909bbac
commit
369ffa758e
12
library/vendor/Zend/Registry.php
vendored
12
library/vendor/Zend/Registry.php
vendored
@ -189,16 +189,4 @@ class Zend_Registry extends ArrayObject
|
||||
{
|
||||
parent::__construct($array, $flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $index
|
||||
* @returns mixed
|
||||
*
|
||||
* Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960).
|
||||
*/
|
||||
public function offsetExists($index)
|
||||
{
|
||||
return array_key_exists($index, $this);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user