Skip to content

Commit

Permalink
fix: fix nullable context evaluation (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
azuradara authored Aug 26, 2024
1 parent 42e605a commit 52cf9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Decorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function canHandleNullContext(callable $resolver): bool
$function = new ReflectionFunction(Closure::fromCallable($resolver));

return $function->getNumberOfParameters() === 0
|| $function->getParameters()[0]->hasType()
|| !$function->getParameters()[0]->hasType()
|| $function->getParameters()[0]->getType()->allowsNull();
}

Expand Down

0 comments on commit 52cf9c4

Please sign in to comment.