File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,10 @@ Methods to Change Case
234
234
u('Foo: Bar-baz.')->snake(); // 'foo_bar_baz'
235
235
// changes all graphemes/code points to kebab-case
236
236
u('Foo: Bar-baz.')->kebab(); // 'foo-bar-baz'
237
- // other cases can be achieved by chaining methods. E.g. PascalCase:
238
- u('Foo: Bar-baz.')->camel()->title(); // 'FooBarBaz'
237
+ // changes all graphemes/code points to PascalCase
238
+ u('Foo: Bar-baz.')->pascal(); // 'FooBarBaz'
239
+ // other cases can be achieved by chaining methods, e.g. :
240
+ u('Foo: Bar-baz.')->camel()->upper(); // 'FOOBARBAZ'
239
241
240
242
.. versionadded :: 7.1
241
243
@@ -246,6 +248,10 @@ Methods to Change Case
246
248
247
249
The ``kebab() `` method was introduced in Symfony 7.2.
248
250
251
+ .. versionadded :: 7.3
252
+
253
+ The ``pascal() `` method was introduced in Symfony 7.3.
254
+
249
255
The methods of all string classes are case-sensitive by default. You can perform
250
256
case-insensitive operations with the ``ignoreCase() `` method::
251
257
You can’t perform that action at this time.
0 commit comments