fix: type check

This commit is contained in:
Andrea Marco Sartori
2023-08-02 20:49:27 +02:00
parent fb75b712d3
commit d94a6580f5

View File

@ -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.');
}