Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#6096-prevent-php-5.6…
Browse files Browse the repository at this point in the history
…-arrayobject-infinite-recursion'

Close zendframework/zendframework#6096
  • Loading branch information
Ocramius committed Apr 8, 2014
2 parents 97a0260 + ce229b7 commit 7f2fed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function toString()
*/
public function offsetGet($name)
{
if (isset($this[$name])) {
if ($this->offsetExists($name)) {
return parent::offsetGet($name);
}
return null;
Expand All @@ -96,7 +96,7 @@ public function offsetGet($name)
*/
public function get($name, $default = null)
{
if (isset($this[$name])) {
if ($this->offsetExists($name)) {
return parent::offsetGet($name);
}
return $default;
Expand Down

0 comments on commit 7f2fed2

Please sign in to comment.