Skip to content

Commit 7924f8d

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Update serializer.rst
2 parents 7bc69a6 + 78d34de commit 7924f8d

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
@@ -556,7 +556,7 @@ A custom name converter can handle such cases::
556556
public function denormalize(string $propertyName): string
557557
{
558558
// removes 'org_' prefix
559-
return 'org_' === substr($propertyName, 0, 4) ? substr($propertyName, 4) : $propertyName;
559+
return str_starts_with($propertyName, 'org_') ? substr($propertyName, 4) : $propertyName;
560560
}
561561
}
562562

0 commit comments

Comments
 (0)