Skip to content

Commit a09bb87

Browse files
committed
Ignore deprecated method error
The deprecation error has been introduced with the changes in googleapis/google-cloud-php#8617. Until/Unless googleapis/google-cloud-php#8689 or something similar is implemented, we need to ignore the error here.
1 parent 9133595 commit a09bb87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Firebase/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public function createFirestore(?string $databaseName = null): Contract\Firestor
524524
public function createStorage(): Contract\Storage
525525
{
526526
try {
527-
$storageClient = new StorageClient($this->googleCloudClientConfig());
527+
$storageClient = new StorageClient($this->googleCloudClientConfig()); // @phpstan-ignore method.deprecated
528528
} catch (Throwable $e) {
529529
throw new RuntimeException('Unable to create a StorageClient: '.$e->getMessage(), $e->getCode(), $e);
530530
}

src/Firebase/Firestore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private function __construct(private readonly FirestoreClient $client)
2323
public static function fromConfig(array $config): Contract\Firestore
2424
{
2525
try {
26-
return new self(new FirestoreClient($config));
26+
return new self(new FirestoreClient($config)); // @phpstan-ignore method.deprecated
2727
} catch (Throwable $e) {
2828
throw new RuntimeException('Unable to create a FirestoreClient: '.$e->getMessage(), $e->getCode(), $e);
2929
}

0 commit comments

Comments
 (0)