From db59881e0ee726bf1dd30a8c9ab6b91c92b06a4c Mon Sep 17 00:00:00 2001 From: James Kingsley Date: Thu, 13 Jun 2024 11:09:03 +0100 Subject: [PATCH] fix incorrect assertion --- tests/ArrayBasedFormatterTestCases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ArrayBasedFormatterTestCases.php b/tests/ArrayBasedFormatterTestCases.php index c413bcf..ee18373 100644 --- a/tests/ArrayBasedFormatterTestCases.php +++ b/tests/ArrayBasedFormatterTestCases.php @@ -469,7 +469,7 @@ public function nullable_value_objects_flattened_validate(mixed $serialized): vo { $toTest = $this->arrayify($serialized); - self::assertTrue(isset($toTest['order_id'])); + self::assertArrayHasKey('order_id', $toTest); self::assertNull($toTest['order_id']); }