mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: inconsistent type in InvalidExpectationValue exception at toHaveCount expectation
This commit is contained in:
@ -264,7 +264,7 @@ final class Expectation
|
||||
public function toHaveCount(int $count, string $message = ''): self
|
||||
{
|
||||
if (! is_countable($this->value) && ! is_iterable($this->value)) {
|
||||
InvalidExpectationValue::expected('string');
|
||||
InvalidExpectationValue::expected('countable|iterable');
|
||||
}
|
||||
|
||||
Assert::assertCount($count, $this->value, $message);
|
||||
|
||||
Reference in New Issue
Block a user