From e22324e557e996f0f2cdad847d3647d98b1a2ba2 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Sat, 15 Jun 2024 09:18:26 +0200 Subject: [PATCH] Update return type in getAlternativeDescriptions method The method getAlternativeDescriptions in MetadataStatement.php has been updated to allow it to return null. This change provides more flexibility when no alternative descriptions are available for any given metadata statement. --- src/metadata-service/src/Statement/MetadataStatement.php | 2 +- tests/symfony/config/config.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/metadata-service/src/Statement/MetadataStatement.php b/src/metadata-service/src/Statement/MetadataStatement.php index 69685bc66..d14f1e41f 100644 --- a/src/metadata-service/src/Statement/MetadataStatement.php +++ b/src/metadata-service/src/Statement/MetadataStatement.php @@ -361,7 +361,7 @@ public function getDescription(): string * @deprecated since 4.7.0. Please use the property directly. * @infection-ignore-all */ - public function getAlternativeDescriptions(): AlternativeDescriptions + public function getAlternativeDescriptions(): null|AlternativeDescriptions { return $this->alternativeDescriptions; } diff --git a/tests/symfony/config/config.yml b/tests/symfony/config/config.yml index ed9018736..e473f7d2d 100644 --- a/tests/symfony/config/config.yml +++ b/tests/symfony/config/config.yml @@ -111,6 +111,8 @@ doctrine: auto_generate_proxy_classes: true naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware auto_mapping: true + controller_resolver: + auto_mapping: false mappings: App: is_bundle: false