Skip to content

Commit 9dde16c

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Serializer] Add return hint
2 parents 163b236 + b80e21d commit 9dde16c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,12 @@ A custom name converter can handle such cases::
588588

589589
class OrgPrefixNameConverter implements NameConverterInterface
590590
{
591-
public function normalize(string $propertyName)
591+
public function normalize(string $propertyName): string
592592
{
593593
return 'org_'.$propertyName;
594594
}
595595

596-
public function denormalize(string $propertyName)
596+
public function denormalize(string $propertyName): string
597597
{
598598
// removes 'org_' prefix
599599
return 'org_' === substr($propertyName, 0, 4) ? substr($propertyName, 4) : $propertyName;

0 commit comments

Comments
 (0)