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