src/Commands/BuildCommand.php
private function getTimeout(): ?float
    {
        if (! is_numeric($this->option('timeout'))) {
            throw new \InvalidArgumentException('The timeout value must be a number.');
        }

        $timeout = (float) $this->option('timeout');

        return $timeout > 0 ? $timeout : null;
    }
private function getTimeout(): ?float
    {
        if (! is_numeric($this->option('timeout'))) {
            throw new \InvalidArgumentException('The timeout value must be a number.');
        }

        $timeout = (float) $this->option('timeout');

        return $timeout > 0 ? $timeout : null;
    }
private function getTimeout ( ) : ? float { if ( ! is_numeric ( $ this -> option ( 'timeout' ) ) ) { throw new \ InvalidArgumentException ( 'The timeout value must be a number.' ) ; } $ timeout = ( float ) $ this -> option ( 'timeout' ) ; return $ timeout > 0 ? $ timeout : null ; }
Returns a valid timeout value. Non positive values are converted to null,
meaning no timeout.

@return float|null
@throws \InvalidArgumentException
Returns a valid timeout value . Non positive values are converted to null meaning no timeout .