We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358ef15 commit bc932e1Copy full SHA for bc932e1
src/Assert/Filter.php
@@ -22,7 +22,9 @@ public static function boolean(callable $filter): void
22
} elseif (is_object($filter)) {
23
$reflection = new ReflectionMethod($filter, '__invoke');
24
} else {
25
- throw new InvalidArgumentException('Expected Closure or invokable object, string given');
+ throw new InvalidArgumentException(
26
+ sprintf('Expected Closure or invokable object, %s given', gettype($filter))
27
+ );
28
}
29
30
$returnType = $reflection->getReturnType();
0 commit comments