@@ -1574,9 +1574,9 @@ private function isTypedProperty(string $name): bool
15741574 /**
15751575 * Validates & completes the given field mapping based on typed property.
15761576 *
1577- * @param mixed[] $mapping The field mapping to validate & complete.
1577+ * @param array{fieldName: string, type?: mixed} $mapping The field mapping to validate & complete.
15781578 *
1579- * @return mixed[] The updated mapping.
1579+ * @return array{fieldName: string, enumType?: string, type?: mixed} The updated mapping.
15801580 */
15811581 private function validateAndCompleteTypedFieldMapping (array $ mapping ): array
15821582 {
@@ -1631,7 +1631,7 @@ private function validateAndCompleteTypedFieldMapping(array $mapping): array
16311631 /**
16321632 * Validates & completes the basic mapping information based on typed property.
16331633 *
1634- * @param mixed[] $mapping The mapping.
1634+ * @param array{type: self::ONE_TO_ONE|self::MANY_TO_ONE|self::ONE_TO_MANY|self::MANY_TO_MANY, fieldName: string, targetEntity?: class-string} $mapping The mapping.
16351635 *
16361636 * @return mixed[] The updated mapping.
16371637 */
@@ -1653,7 +1653,13 @@ private function validateAndCompleteTypedAssociationMapping(array $mapping): arr
16531653 /**
16541654 * Validates & completes the given field mapping.
16551655 *
1656- * @psalm-param array<string, mixed> $mapping The field mapping to validate & complete.
1656+ * @psalm-param array{
1657+ * fieldName?: string,
1658+ * columnName?: string,
1659+ * id?: bool,
1660+ * generated?: int,
1661+ * enumType?: class-string,
1662+ * } $mapping The field mapping to validate & complete.
16571663 *
16581664 * @return mixed[] The updated mapping.
16591665 *
@@ -1897,7 +1903,6 @@ protected function _validateAndCompleteAssociationMapping(array $mapping)
18971903 * Validates & completes a one-to-one association mapping.
18981904 *
18991905 * @psalm-param array<string, mixed> $mapping The mapping to validate & complete.
1900- * @psalm-param array<string, mixed> $mapping The mapping to validate & complete.
19011906 *
19021907 * @return mixed[] The validated & completed mapping.
19031908 * @psalm-return array{isOwningSide: mixed, orphanRemoval: bool, isCascadeRemove: bool}
0 commit comments