Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Nov 6, 2024
1 parent 9c8e506 commit af8f9a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Drivers/Decorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Laravel\Pennant\Feature;
use Laravel\Pennant\LazilyResolvedFeature;
use Laravel\Pennant\PendingScopedFeatureInteraction;
use Laravel\SerializableClosure\Support\ReflectionClosure;
use ReflectionClass;
use ReflectionFunction;
use ReflectionIntersectionType;
Expand Down Expand Up @@ -200,7 +199,7 @@ public function isResolverValidForScope($resolver, $scope)
? $class->getMethod('resolve')
: $class->getMethod('__invoke');
} else {
$function = new ReflectionClosure(Closure::fromCallable($resolver));
$function = new ReflectionFunction(Closure::fromCallable($resolver));
}

if ($function->getNumberOfParameters() === 0) {
Expand All @@ -221,7 +220,7 @@ public function isResolverValidForScope($resolver, $scope)
*
* @param \ReflectionType $type
* @param mixed $scope
* @param \ReflectionClosure|\ReflectionFunction $function
* @param \ReflectionMethod|\ReflectionFunction $function
* @return bool
*/
protected function typeAllowsScope($type, $scope, $function)
Expand Down

0 comments on commit af8f9a7

Please sign in to comment.