Avoid PHP deprecation notices in PHP 8.1.x by christianwach · Pull Request #5899 · wp-cli/wp-cli

Please see #5898 for details.

tl;dr In versions of PHP greater than 8.1.x, when Utils\http_request() fails, then PHP Deprecated notices are written to the logs. Passing (int) 0 is compatible with the signature of the RuntimeException constructor and avoids the warnings.

Since there are no functional changes in this PR, I haven't included tests.