Skip to content

Commit a9bb338

Browse files
Move readonly keyword from class to properties
1 parent 2434907 commit a9bb338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NameConverter/SnakeCaseToCamelCaseNameConverter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Kévin Dunglas <[email protected]>
2020
*/
21-
final readonly class SnakeCaseToCamelCaseNameConverter implements NameConverterInterface
21+
final class SnakeCaseToCamelCaseNameConverter implements NameConverterInterface
2222
{
2323
/**
2424
* Require all properties to be written in camelCase.
@@ -30,8 +30,8 @@
3030
* @param bool $lowerCamelCase Use lowerCamelCase style
3131
*/
3232
public function __construct(
33-
private ?array $attributes = null,
34-
private bool $lowerCamelCase = true,
33+
private readonly ?array $attributes = null,
34+
private readonly bool $lowerCamelCase = true,
3535
) {
3636
}
3737

0 commit comments

Comments
 (0)