Skip to content

Commit

Permalink
Fixed only variables can be passed by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelrana820 committed Aug 14, 2018
1 parent 88acae3 commit 301cb31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/ConsoleInput.php
Expand Up @@ -77,7 +77,8 @@ public function read()
public function dataAvailable($timeout = 0)
{
$readFds = [$this->_input];
$readyFds = stream_select($readFds, null, null, $timeout);
$null = null;
$readyFds = stream_select($readFds, $null, $null, $timeout);

return ($readyFds > 0);
}
Expand Down

0 comments on commit 301cb31

Please sign in to comment.