From 222d544b0c9ce5136a59813469a6f081a9fa317e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 4 May 2023 21:32:09 +0200 Subject: [PATCH] Upgrade to Psalm 5.10.0 --- composer.json | 2 +- psalm-baseline.xml | 146 +++++++++++++++++++++------------------------ 2 files changed, 68 insertions(+), 80 deletions(-) diff --git a/composer.json b/composer.json index 3628aa3d098..84838b7ab26 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "symfony/cache": "^4.4 || ^5.4 || ^6.0", "symfony/var-exporter": "^4.4 || ^5.4 || ^6.2", "symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0", - "vimeo/psalm": "4.30.0 || 5.9.0" + "vimeo/psalm": "4.30.0 || 5.10.0" }, "conflict": { "doctrine/annotations": "<1.13 || >= 3.0" diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 0ee9be949c7..91e2f107199 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + IterableResult @@ -458,6 +458,9 @@ + + $element + $index @@ -610,17 +613,14 @@ subClasses]]> - $mapping $mapping reflClass]]> AssociationMapping - FieldMapping getReflectionClass - $cache $className $className $columnNames @@ -632,8 +632,7 @@ __toString - AssociationMapping - array{usage: int, region: string|null} + FieldMapping class-string|null ]]> ]]> @@ -743,12 +742,12 @@ - + $mapping - - + + array - + array_merge(self::DEFAULT_TYPED_FIELD_MAPPINGS, $typedFieldMappings) @@ -914,8 +913,18 @@ table]]> + + options]]> + options]]> + {'discriminator-column'}]]> + {'discriminator-map'}]]> + $mapping + $usage, + 'region' => $region, + ]]]> array{ @@ -934,13 +943,8 @@ * columnDefinition?: string, * options?: array * } + array{usage: int|null, region?: string} - - $usage, - 'region' => $region, - ]]]> - $fileExtension $locator @@ -948,40 +952,19 @@ $metadata - - array{usage: int|null, region?: string} - options]]> options]]> {'discriminator-column'}]]> {'discriminator-map'}]]> - - options]]> - options]]> - {'discriminator-column'}]]> - {'discriminator-map'}]]> - - - cache)]]> - embedded)]]> - field)]]> - indexes)]]> - options)]]> - {'association-overrides'})]]> - {'attribute-overrides'})]]> - {'entity-listeners'})]]> - {'lifecycle-callbacks'})]]> - {'many-to-many'})]]> - {'many-to-one'})]]> - {'named-native-queries'})]]> - {'named-queries'})]]> - {'one-to-many'})]]> - {'one-to-one'})]]> - {'sql-result-set-mappings'})]]> - {'unique-constraints'})]]> - + + children()]]> + children()]]> + + + children()]]> + getName() === 'embeddable']]> getName() === 'entity']]> @@ -989,11 +972,7 @@ - - addNamedNativeQuery - addNamedQuery - - + isset($discrColumn['name']) ? (string) $discrColumn['name'] : null, 'type' => isset($discrColumn['type']) ? (string) $discrColumn['type'] : 'string', @@ -1001,7 +980,11 @@ 'columnDefinition' => isset($discrColumn['columnDefinition']) ? (string) $discrColumn['columnDefinition'] : null, 'enumType' => isset($discrColumn['enumType']) ? (string) $discrColumn['enumType'] : null, ]]]> - + + + addNamedNativeQuery + addNamedQuery + $usage, @@ -1038,9 +1021,6 @@ $element $element - - table]]> - $element $element @@ -1302,7 +1282,6 @@ $newValue - $postInsertIds [$params, $types] [$sqlParams, $sqlTypes] @@ -1310,7 +1289,6 @@ loadAll - executeInserts expandCriteriaParameters expandParameters ]]> @@ -1394,12 +1372,6 @@ - - $postInsertIds - - - executeInserts - @@ -1937,9 +1909,6 @@ __toString - - parts]]> - @@ -2292,10 +2261,6 @@ - $args - $args - $args - $args $join]]]> $join]]]> @@ -2312,17 +2277,9 @@ new ArrayCollection($parameters) - - $aliases - $entities - __toString - - ]]> - ]]> - $spacePos $spacePos @@ -2621,8 +2578,42 @@ asXML()]]> + + $entityListenersXml + $optionsXml + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addAttribute + addChild + addChild + addChild + addChild + addChild + addChild + addChild + addChild + addChild + addChild @@ -2863,9 +2854,6 @@ unwrap unwrap - - nonCascadedNewDetectedEntities]]> - = 0 && $this->entityDeletions]]> entityDeletions]]>