Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 26, 2024
1 parent 6dbdd24 commit d61a1ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ public function resolveFromReflection(
FunctionReflection | MethodReflection $functionLikeReflection,
array $currentArgs
): array {
$parametersAcceptor = ParametersAcceptorSelector::combineAcceptors($functionLikeReflection->getVariants());
$parametersAcceptorWithPhpDocs = ParametersAcceptorSelector::combineAcceptors(
$functionLikeReflection->getVariants()
);

$parameters = $parametersAcceptor->getParameters();
$parameters = $parametersAcceptorWithPhpDocs->getParameters();

if ($functionLikeReflection instanceof NativeFunctionReflection) {
$functionLikeReflection = new ReflectionFunction($functionLikeReflection->getName());
Expand Down

0 comments on commit d61a1ad

Please sign in to comment.