From 173a72e69d994f5623f171803ed78a38944d53db Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 29 Aug 2022 15:51:22 +0200 Subject: [PATCH] revert unwanted code --- src/Mixins/Expectation.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Mixins/Expectation.php b/src/Mixins/Expectation.php index 61d5bf6e..d1020cae 100644 --- a/src/Mixins/Expectation.php +++ b/src/Mixins/Expectation.php @@ -722,10 +722,6 @@ final class Expectation $valueAsArray = (array) $this->value; } - if (is_object($array) && method_exists($array, 'toArray')) { - $array = $array->toArray(); - } - foreach ($array as $key => $value) { Assert::assertArrayHasKey($key, $valueAsArray);