Skip to content

Commit

Permalink
Merge pull request #24 from sitegeist/mficzel-patch-1
Browse files Browse the repository at this point in the history
BUGFIX: Handle `in` argument of `Parameter` attribute property if they are passed as named arguments without style
  • Loading branch information
mficzel authored Jun 24, 2024
2 parents a750d94 + 81a2bcb commit cf289f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Metadata/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function fromReflectionParameter(\ReflectionParameter $reflectionP

return new self(
$arguments['in'] ?? $arguments[0],
$arguments['style'] ?? $arguments[1] ?? ParameterStyle::createDefaultForParameterLocationAndReflection($arguments[0], $reflectionParameter),
$arguments['style'] ?? $arguments[1] ?? ParameterStyle::createDefaultForParameterLocationAndReflection($arguments['in'] ?? $arguments[0], $reflectionParameter),
$arguments['description'] ?? $arguments[2] ?? null,
);
default:
Expand Down

0 comments on commit cf289f5

Please sign in to comment.