From df9a158740c31e7dc65e960ba91736aaffcc6f7d Mon Sep 17 00:00:00 2001 From: David Maicher Date: Sat, 24 Feb 2024 18:22:29 +0100 Subject: [PATCH] ignore error --- src/FieldDescription/FieldDescriptionFactory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FieldDescription/FieldDescriptionFactory.php b/src/FieldDescription/FieldDescriptionFactory.php index 747a2ec9b..c9357aa3c 100644 --- a/src/FieldDescription/FieldDescriptionFactory.php +++ b/src/FieldDescription/FieldDescriptionFactory.php @@ -32,6 +32,10 @@ public function create(string $class, string $name, array $options = []): FieldD $associationMapping = $metadata->associationMappings[$propertyName] ?? []; + /** + * @psalm-suppress UndefinedClass + * @phpstan-ignore-next-line + */ if ($associationMapping instanceof AssociationMapping) { $associationMappingType = $associationMapping->type(); $associationMapping = (array) $associationMapping; @@ -41,6 +45,7 @@ public function create(string $class, string $name, array $options = []): FieldD return new FieldDescription( $name, $options, + /** @psalm-suppress RedundantCastGivenDocblockType */ (array) ($metadata->fieldMappings[$propertyName] ?? []), $associationMapping, $parentAssociationMappings,