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 ea55a6f commit 8bb0e8bCopy full SHA for 8bb0e8b
src/Framework/Constraint/Callback.php
@@ -42,13 +42,7 @@ public function toString(): string
42
43
public function isVariadic(): bool
44
{
45
- foreach ((new ReflectionFunction(Closure::fromCallable($this->callback)))->getParameters() as $parameter) {
46
- if ($parameter->isVariadic()) {
47
- return true;
48
- }
49
50
-
51
- return false;
+ return (new ReflectionFunction(Closure::fromCallable($this->callback)))->isVariadic();
52
}
53
54
/**
0 commit comments