diff --git a/src/Expectation.php b/src/Expectation.php index 02d27c28..253b1e1e 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -389,9 +389,9 @@ final class Expectation /** * Asserts that the value contains the provided properties $names. * - * @param array $names + * @param iterable $names */ - public function toHaveProperties(array $names): Expectation + public function toHaveProperties(iterable $names): Expectation { foreach ($names as $name) { $this->toHaveProperty($name);