Problem
When calling $client->getRequestsHavingResponse() before any request was sent a warning is emitted.
PHP Warning: stream_select(): No stream arrays were passed in /vagrant/vendor/hollodotme/fast-cgi-client/src/Client.php on line 269
PHP Stack trace:
PHP 1. {main}() /vagrant/src/daemon.php:0
PHP 2. hollodotme\FastCGI\Client->handleReadyResponses() /vagrant/src/daemon.php:81
PHP 3. hollodotme\FastCGI\Client->getRequestIdsHavingResponse() /vagrant/vendor/hollodotme/fast-cgi-client/src/Client.php:344
PHP 4. stream_select() /vagrant/vendor/hollodotme/fast-cgi-client/src/Client.php:269
Solution
Check here if $this->sockets is empty and if so return an empty array.
/cc @TakeMeNL
Problem
When calling
$client->getRequestsHavingResponse()before any request was sent a warning is emitted.Solution
Check here if
$this->socketsis empty and if so return an empty array./cc @TakeMeNL