diff --git a/src/Credentials/GCECredentials.php b/src/Credentials/GCECredentials.php index 71527dbfa..c9bb6aeea 100644 --- a/src/Credentials/GCECredentials.php +++ b/src/Credentials/GCECredentials.php @@ -30,7 +30,6 @@ use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Exception\ServerException; use GuzzleHttp\Psr7\Request; -use \COM; use InvalidArgumentException; @@ -413,13 +412,13 @@ private static function detectResidencyLinux(string $productNameFile): bool private static function detectResidencyWindows(string $registryProductKey): bool { - if (!class_exists(COM::class)) { + if (!class_exists(\COM::class)) { // the COM extension must be installed and enabled to detect Windows residency // see https://www.php.net/manual/en/book.com.php return false; } - $shell = new COM('WScript.Shell'); + $shell = new \COM('WScript.Shell'); $productName = $shell->regRead($registryProductKey); if ($productName !== self::WINDOWS_PRODUCT_NAME) {