2525use Symfony \Component \Config \Resource \FileResource ;
2626use Symfony \Component \DependencyInjection \ContainerBuilder ;
2727use Symfony \Component \DependencyInjection \Exception \InvalidArgumentException ;
28+
2829use function array_filter ;
2930use function array_keys ;
3031use function array_map ;
@@ -250,6 +251,7 @@ private static function classMetadatasToGQLConfiguration(
250251
251252 /**
252253 * @throws ReflectionException
254+ *
253255 * @phpstan-param class-string $className
254256 */
255257 private static function getClassReflection (string $ className ): ReflectionClass
@@ -510,9 +512,9 @@ private static function unionMetadataToGQLConfiguration(ReflectionClass $reflect
510512 * @phpstan-param ReflectionMethod|ReflectionProperty $reflector
511513 * @phpstan-param class-string<Metadata\Field> $fieldMetadataName
512514 *
513- * @throws AnnotationException
514- *
515515 * @return array<string,array>
516+ *
517+ * @throws AnnotationException
516518 */
517519 private static function getTypeFieldConfigurationFromReflector (ReflectionClass $ reflectionClass , Reflector $ reflector , string $ fieldMetadataName , string $ currentValue = 'value ' ): array
518520 {
@@ -623,9 +625,9 @@ private static function getTypeFieldConfigurationFromReflector(ReflectionClass $
623625 *
624626 * @param ReflectionProperty[] $reflectors
625627 *
626- * @throws AnnotationException
627- *
628628 * @return array<string,array>
629+ *
630+ * @throws AnnotationException
629631 */
630632 private static function getGraphQLInputFieldsFromMetadatas (ReflectionClass $ reflectionClass , array $ reflectors ): array
631633 {
@@ -832,7 +834,9 @@ private static function formatNamespaceForExpression(string $namespace): string
832834 * Get the first metadata matching given class.
833835 *
834836 * @phpstan-template T of object
837+ *
835838 * @phpstan-param class-string<T>|class-string<T>[] $metadataClasses
839+ *
836840 * @phpstan-return T|null
837841 *
838842 * @return object|null
@@ -848,6 +852,7 @@ private static function getFirstMetadataMatching(array $metadatas, $metadataClas
848852 * Return the metadata matching given class
849853 *
850854 * @phpstan-template T of object
855+ *
851856 * @phpstan-param class-string<T>|class-string<T>[] $metadataClasses
852857 *
853858 * @return array
0 commit comments