Skip to content

Commit 4f21f7c

Browse files
minor symfony#58057 [Serializer] more precise type for CamelCaseToSnakeCaseNameConverter::$attributes (dunglas)
This PR was merged into the 7.2 branch. Discussion ---------- [Serializer] more precise type for CamelCaseToSnakeCaseNameConverter::$attributes | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | n/a | License | MIT Minor docs/static analysis improvement. Commits ------- a2a958b [Serializer] more precise type for CamelCaseToSnakeCaseNameConverter::$attributes
2 parents f654df3 + a2a958b commit 4f21f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
2727
public const REQUIRE_SNAKE_CASE_PROPERTIES = 'require_snake_case_properties';
2828

2929
/**
30-
* @param array|null $attributes The list of attributes to rename or null for all attributes
31-
* @param bool $lowerCamelCase Use lowerCamelCase style
30+
* @param string[]|null $attributes The list of attributes to rename or null for all attributes
31+
* @param bool $lowerCamelCase Use lowerCamelCase style
3232
*/
3333
public function __construct(
3434
private ?array $attributes = null,

0 commit comments

Comments
 (0)