Skip to content

Commit

Permalink
ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Feb 24, 2024
1 parent ee1aee2 commit df9a158
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FieldDescription/FieldDescriptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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] ?? []),

Check failure on line 49 in src/FieldDescription/FieldDescriptionFactory.php

View workflow job for this annotation

GitHub Actions / Psalm

RedundantCastGivenDocblockType

src/FieldDescription/FieldDescriptionFactory.php:49:13: RedundantCastGivenDocblockType: Redundant cast to array given docblock-provided type (see https://psalm.dev/263)
$associationMapping,
$parentAssociationMappings,
Expand Down

0 comments on commit df9a158

Please sign in to comment.