Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/Firebase/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -638,11 +638,6 @@ private function googleCloudClientConfig(): array
$config['credentialsFetcher'] = $credentials;
}

$serviceAccount = $this->getServiceAccount();
if ($serviceAccount !== null) {
$config['keyFile'] = $this->normalizeServiceAccount($serviceAccount);
}

return $config;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Firebase/Firestore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down