Skip to content

Commit

Permalink
fix(Firestore): deprecation from autoloading deprecated class (#7963)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Jan 6, 2025
1 parent 944287d commit cdd44d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Firestore/src/DocumentReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function ($collectionId) {
*/
protected function batchFactory()
{
if (!class_exists(WriteBatch::class)) {
if (!class_exists(WriteBatch::class, false)) {
class_alias(BulkWriter::class, WriteBatch::class);
}
return new BulkWriter(
Expand Down
2 changes: 1 addition & 1 deletion Firestore/src/FirestoreClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function __construct(array $config = [])
*/
public function batch()
{
if (!class_exists(WriteBatch::class)) {
if (!class_exists(WriteBatch::class, false)) {
class_alias(BulkWriter::class, WriteBatch::class);
}
return new BulkWriter(
Expand Down

0 comments on commit cdd44d9

Please sign in to comment.