Skip to content

Commit

Permalink
Merge pull request #13 from PiPHP/rewind-fix
Browse files Browse the repository at this point in the history
Fixed scrutinizer issue: rewind called on undefined var
  • Loading branch information
AndrewCarterUK authored Jul 9, 2016
2 parents 3f2a64e + 6db8a55 commit 5d2c5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interrupt/InterruptWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function register(InputPinInterface $pin, callable $callback)
$this->streams[$pinNumber] = $this->fileSystem->open($file, 'r');
stream_set_blocking($this->streams[$pinNumber], false);
fread($this->streams[$pinNumber], 1);
@rewind($stream);
@rewind($this->streams[$pinNumber]);
}

$this->pins[$pinNumber] = $pin;
Expand Down

0 comments on commit 5d2c5b8

Please sign in to comment.