mirror of
https://github.com/pestphp/pest.git
synced 2026-03-13 11:17:22 +01:00
revert unwanted code
This commit is contained in:
@ -722,10 +722,6 @@ final class Expectation
|
|||||||
$valueAsArray = (array) $this->value;
|
$valueAsArray = (array) $this->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_object($array) && method_exists($array, 'toArray')) {
|
|
||||||
$array = $array->toArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
Assert::assertArrayHasKey($key, $valueAsArray);
|
Assert::assertArrayHasKey($key, $valueAsArray);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user