Skip to content

Commit 88d88ed

Browse files
authored
fix(doctrine): wrong return type without name converter #6079 (#6254)
1 parent 0154fbf commit 88d88ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Doctrine/Odm/Filter/AbstractFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function isPropertyEnabled(string $property, string $resourceClass): b
8686
protected function denormalizePropertyName(string|int $property): string
8787
{
8888
if (!$this->nameConverter instanceof NameConverterInterface) {
89-
return $property;
89+
return (string) $property;
9090
}
9191

9292
return implode('.', array_map($this->nameConverter->denormalize(...), explode('.', (string) $property)));

src/Doctrine/Orm/Filter/AbstractFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function isPropertyEnabled(string $property, string $resourceClass): b
8080
protected function denormalizePropertyName(string|int $property): string
8181
{
8282
if (!$this->nameConverter instanceof NameConverterInterface) {
83-
return $property;
83+
return (string) $property;
8484
}
8585

8686
return implode('.', array_map($this->nameConverter->denormalize(...), explode('.', (string) $property)));

0 commit comments

Comments
 (0)