Skip to content

Commit

Permalink
Fixed scrutinizer issue: rewind called on undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCarterUK committed Jul 9, 2016
1 parent a5b1814 commit 6db8a55
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 6db8a55

Please sign in to comment.