8000 Merge branch '5.4' into 6.3 · symfony/symfony-docs@455402b · GitHub
[go: up one dir, main page]

Skip to content

Commit 455402b

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: Update serializer.rst
2 parents 5ea2f9b + d114e1f commit 455402b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ A custom name converter can handle such cases::
557557
public function denormalize(string $propertyName): string
558558
{
559559
// removes 'org_' prefix
560-
return 'org_' === substr($propertyName, 0, 4) ? substr($propertyName, 4) : $propertyName;
560+
return str_starts_with($propertyName, 'org_') ? substr($propertyName, 4) : $propertyName;
561561
}
562562
}
563563

0 commit comments

Comments
 (0)
0