protected function select(array $sockets, int $timeoutSec, int $timeoutUsec, bool $isRead = true)
    {
        $null = null;

        if ($isRead) {
            return @stream_select($sockets, $null, $null, $timeoutSec, $timeoutUsec);
        }

        return @stream_select($null, $sockets, $null, $timeoutSec, $timeoutUsec);
    }
protected function select(array $sockets, int $timeoutSec, int $timeoutUsec, bool $isRead = true)
    {
        $null = null;

        if ($isRead) {
            return @stream_select($sockets, $null, $null, $timeoutSec, $timeoutUsec);
        }

        return @stream_select($null, $sockets, $null, $timeoutSec, $timeoutUsec);
    }
protected function select ( array $ sockets , int $ timeoutSec , int $ timeoutUsec , bool $ isRead = true ) { $ null = null ; if ( $ isRead ) { return @ stream_select ( $ sockets , $ null , $ null , $ timeoutSec , $ timeoutUsec ) ; } return @ stream_select ( $ null , $ sockets , $ null , $ timeoutSec , $ timeoutUsec ) ; }
Encapsulation of stream_select

Because `stream_select` in stream wrapper mock no effect, if don't create this function will never be testable

@codeCoverageIgnore

@param resource[] $sockets

@return int|bool
Encapsulation of stream_select