From b6e3ffafa7520076157a470af082f2ccf26a2c6e Mon Sep 17 00:00:00 2001 From: Thai Nguyen Hung Date: Wed, 23 Aug 2023 08:14:27 +0700 Subject: [PATCH] fix: phpstan --- src/Mixins/Expectation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mixins/Expectation.php b/src/Mixins/Expectation.php index 57040711..d9ff744d 100644 --- a/src/Mixins/Expectation.php +++ b/src/Mixins/Expectation.php @@ -6,7 +6,6 @@ namespace Pest\Mixins; use BadMethodCallException; use Closure; -use Countable; use DateTimeInterface; use Error; use InvalidArgumentException; @@ -276,9 +275,10 @@ final class Expectation /** * Asserts that the size of the value and $expected are the same. * + * @param array $expected * @return self */ - public function toHaveSameSize(Countable|iterable $expected, string $message = ''): self + public function toHaveSameSize(iterable $expected, string $message = ''): self { if (! is_countable($this->value) && ! is_iterable($this->value)) { InvalidExpectationValue::expected('countable|iterable');