Navigation Menu

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 c3157a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Zend/Registry.php
Expand Up @@ -203,7 +203,6 @@ public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS)
*/
public function offsetExists($index)
{
return array_key_exists($index, $this);
return isset($this->{$index});
}

}

0 comments on commit c3157a0

Please sign in to comment.