diff --git a/src/Firebase/Factory.php b/src/Firebase/Factory.php index 7f48442d..aa649513 100644 --- a/src/Firebase/Factory.php +++ b/src/Firebase/Factory.php @@ -524,7 +524,7 @@ public function createFirestore(?string $databaseName = null): Contract\Firestor public function createStorage(): Contract\Storage { try { - $storageClient = new StorageClient($this->googleCloudClientConfig()); + $storageClient = new StorageClient($this->googleCloudClientConfig()); // @phpstan-ignore method.deprecated } catch (Throwable $e) { throw new RuntimeException('Unable to create a StorageClient: '.$e->getMessage(), $e->getCode(), $e); } @@ -638,11 +638,6 @@ private function googleCloudClientConfig(): array $config['credentialsFetcher'] = $credentials; } - $serviceAccount = $this->getServiceAccount(); - if ($serviceAccount !== null) { - $config['keyFile'] = $this->normalizeServiceAccount($serviceAccount); - } - return $config; } diff --git a/src/Firebase/Firestore.php b/src/Firebase/Firestore.php index 88a89e1e..0cd39bfe 100644 --- a/src/Firebase/Firestore.php +++ b/src/Firebase/Firestore.php @@ -23,7 +23,7 @@ private function __construct(private readonly FirestoreClient $client) public static function fromConfig(array $config): Contract\Firestore { try { - return new self(new FirestoreClient($config)); + return new self(new FirestoreClient($config)); // @phpstan-ignore method.deprecated } catch (Throwable $e) { throw new RuntimeException('Unable to create a FirestoreClient: '.$e->getMessage(), $e->getCode(), $e); }