Skip to content

Commit

Permalink
Remove ignored error annotation (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Feb 22, 2024
1 parent cafaa31 commit c51aa74
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Mapper/ORM/DoctrineORMMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
* name: string|null,
* fieldName?: string,
* type?: string,
* length?: int,
* columnDefinition?: string|null
* length?: int|null,
* columnDefinition?: string|null,
* enumType?: class-string<\BackedEnum>|null,
* options?: array<string, mixed>,
* }
*
* NEXT_MAJOR: do not implement EventSubscriber interface anymore
Expand Down Expand Up @@ -256,18 +258,13 @@ private function loadDiscriminatorColumns(ClassMetadata $metadata): void
if (isset($this->discriminatorColumns[$metadata->getName()])) {
$arrayDiscriminatorColumns = $this->discriminatorColumns[$metadata->getName()];
if (isset($metadata->discriminatorColumn)) {
/** @phpstan-var DiscriminatorColumn $arrayDiscriminatorColumns */
$arrayDiscriminatorColumns = array_merge(
(array) $metadata->discriminatorColumn,
$this->discriminatorColumns[$metadata->getName()]
);
}

/**
* ignored until https://github.com/doctrine/orm/pull/11226 is merged.
*
* @psalm-suppress InvalidArgument
* @phpstan-ignore-next-line
*/
$metadata->setDiscriminatorColumn($arrayDiscriminatorColumns);
}
} catch (\ReflectionException $e) {
Expand Down

0 comments on commit c51aa74

Please sign in to comment.