Skip to content

Commit 96d4e2d

Browse files
authored
Merge branch 'master' into multiple-targetType
2 parents 98e785f + 28e8b71 commit 96d4e2d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -750,28 +750,6 @@ private static function getDescriptionConfiguration(array $annotations, bool $wi
750750
return $config;
751751
}
752752

753-
/**
754-
* Get args config from an array of @Arg annotation or by auto-guessing if a method is provided.
755-
*
756-
* @param array $args
757-
* @param ReflectionMethod $method
758-
*/
759-
private static function getArgs(array $args = null, ReflectionMethod $method = null): array
760-
{
761-
$config = [];
762-
if ($args && !empty($args)) {
763-
foreach ($args as $arg) {
764-
$config[$arg->name] = ['type' => $arg->type]
765-
+ ($arg->description ? ['description' => $arg->description] : [])
766-
+ ($arg->default ? ['defaultValue' => $arg->default] : []);
767-
}
768-
} elseif ($method) {
769-
$config = self::guessArgs($method);
770-
}
771-
772-
return $config;
773-
}
774-
775753
/**
776754
* Format an array of args to a list of arguments in an expression.
777755
*/

0 commit comments

Comments
 (0)