From 6d880506ef516baa295eae170b611b4cccb9e87c Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 6 Dec 2024 13:12:39 +0900 Subject: [PATCH] Fix PHPStan --- tests/e2e/Adapter/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Adapter/Base.php b/tests/e2e/Adapter/Base.php index 9272cd002..2ac1fdf14 100644 --- a/tests/e2e/Adapter/Base.php +++ b/tests/e2e/Adapter/Base.php @@ -15923,8 +15923,8 @@ public function testDeleteBulkDocuments(): void $oneHourAgo = (new \DateTime())->sub(new \DateInterval('PT1H')); try { - $this->getDatabase()->withRequestTimestamp($oneHourAgo, function () use ($document) { - return $this->getDatabase()->deleteDocuments($document->getCollection()); + $this->getDatabase()->withRequestTimestamp($oneHourAgo, function () { + return $this->getDatabase()->deleteDocuments('bulk_delete'); }); $this->fail('Failed to throw exception'); } catch (ConflictException $e) {