diff --git a/src/Expectation.php b/src/Expectation.php index 32ceb896..61864092 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -186,7 +186,7 @@ final class Expectation throw new BadMethodCallException('Expectation value is not iterable.'); } - if (empty($callbacks)) { + if (count($callbacks) == 0) { throw new InvalidArgumentException('No sequence expectations defined.'); }