Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Oct 14, 2024
1 parent 5e819e8 commit 3acb215
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3888,8 +3888,9 @@ public function updateDocument(string $collection, string $id, Document $documen
* Batch update documents
*
* @param string $collection
* @param Document $updates
* @param Document $update
* @param array<Query> $queries
* @param int $batchSize
*
* @return bool
*
Expand All @@ -3901,7 +3902,7 @@ public function updateDocuments(string $collection, Document $update, array $que
throw new DatabaseException('Missing tenant. Tenant must be set when table sharing is enabled.');
}

if (empty($update)) {
if (empty($update->getArrayCopy())) {
return true;
}

Expand Down

0 comments on commit 3acb215

Please sign in to comment.