Skip to content

Commit

Permalink
Update return type in getAlternativeDescriptions method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Spomky committed Jun 15, 2024
1 parent 0d1d574 commit e22324e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/metadata-service/src/Statement/MetadataStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/symfony/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e22324e

Please sign in to comment.