Skip to content

Commit

Permalink
Avoid fcall when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlowrey committed Dec 9, 2016
1 parent 3f2e0e1 commit 01f4e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Observer.php
Expand Up @@ -122,7 +122,7 @@ public function next(): Promise {

++$this->position;

if (\array_key_exists($this->position, $this->values)) {
if (isset($this->values[$this->position]) || \array_key_exists($this->position, $this->values)) {
return new Success(true);
}

Expand Down

1 comment on commit 01f4e17

@staabm
Copy link
Member

@staabm staabm commented on 01f4e17 Dec 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same in line 156

Please sign in to comment.