: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @param array<string, bool> $capabilities Optional. Associative array of capabilities to test against, i.e. `['<capability>' => true]`.
* @return bool Whether the transport can be used.
public static function test($capabilities = []) {
if (!function_exists('fsockopen')) {
// If needed, check that streams support SSL
if (isset($capabilities[Capability::SSL]) && $capabilities[Capability::SSL]) {
if (!extension_loaded('openssl') || !function_exists('openssl_x509_parse')) {