Skip to content

Commit 78d34de

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Update serializer.rst
2 parents 4f35362 + 455402b commit 78d34de

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
@@ -580,7 +580,7 @@ A custom name converter can handle such cases::
580580
public function denormalize(string $propertyName): string
581581
{
582582
// removes 'org_' prefix
583-
return 'org_' === substr($propertyName, 0, 4) ? substr($propertyName, 4) : $propertyName;
583+
return str_starts_with($propertyName, 'org_') ? substr($propertyName, 4) : $propertyName;
584584
}
585585
}
586586

0 commit comments

Comments
 (0)