diff --git a/src/Support/MethodFinder.php b/src/Support/MethodFinder.php index adc608e5..eb611a42 100644 --- a/src/Support/MethodFinder.php +++ b/src/Support/MethodFinder.php @@ -76,7 +76,6 @@ protected function expectsParameters(ReflectionMethod $method): bool $direct_matches = $expected->intersect($this->types); - if ($direct_matches->isNotEmpty()) { return true; } @@ -91,7 +90,7 @@ protected function expectsParameters(ReflectionMethod $method): bool if ($interface_matches->isNotEmpty()) { return true; } - + return false; }