Skip to content

Commit

Permalink
fix(Registry): make registry php 7.4 compatible
Browse files Browse the repository at this point in the history
Deprecated: array_key_exists(): Using array_key_exists()
 on objects is deprecated. Use isset() or property_exists()
 instead

see tine20/tine20#7125
  • Loading branch information
pschuele committed Dec 23, 2019
1 parent c0930a6 commit 44d5fe3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions library/Zend/Registry.php
Expand Up @@ -194,16 +194,4 @@ public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS)
{
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);
}

}

0 comments on commit 44d5fe3

Please sign in to comment.