mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Fix types
This commit is contained in:
@ -389,9 +389,9 @@ final class Expectation
|
|||||||
/**
|
/**
|
||||||
* Asserts that the value contains the provided properties $names.
|
* Asserts that the value contains the provided properties $names.
|
||||||
*
|
*
|
||||||
* @param array<string> $names
|
* @param iterable<array-key, string> $names
|
||||||
*/
|
*/
|
||||||
public function toHaveProperties(array $names): Expectation
|
public function toHaveProperties(iterable $names): Expectation
|
||||||
{
|
{
|
||||||
foreach ($names as $name) {
|
foreach ($names as $name) {
|
||||||
$this->toHaveProperty($name);
|
$this->toHaveProperty($name);
|
||||||
|
|||||||
Reference in New Issue
Block a user