You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,22 @@ public function setCamelizedAttributes(array $camelizedAttributes)
141
141
return$this;
142
142
}
143
143
144
+
/**
145
+
* Format an attribute name, for example to convert a snake_case name to camelCase.
146
+
*
147
+
* @deprecated since 2.7, to be removed in 3.0. Use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter instead.
148
+
*
149
+
* @param string $attributeName
150
+
*
151
+
* @return string
152
+
*/
153
+
protectedfunctionformatAttribute($attributeName)
154
+
{
155
+
trigger_error('The setCamelizedAttributes() has been deprecated. Use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter instead.', E_USER_DEPRECATED);
0 commit comments