Skip to content

Commit 066b323

Browse files
coding standards: require using strict type hinting almost everywhere
- the rules enforced (and will be automatically fixed) by slevomat PropertyTypeHintSniff, ReturnTypeHintSniff, and ParameterTypeHintSniff - strict types are required in the whole codebase except entities, entity data objects, and a few particular classes that entities implement or extend - removed redundatnt (and misconfigured) PhpdocToPropertyTypeFixer from the config
1 parent e52ae2b commit 066b323

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

ecs.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,9 @@
358358
// rule breaks jms/translation-bundle as it fails on this usage: `[, $b] = $var`
359359
// won't do any changes after upgrade
360360
ListSyntaxFixer::class => null,
361-
// Enable MissingAnyTypeHint only
362-
ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_MISSING_NATIVE_TYPE_HINT,
363361
ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION,
364-
ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_USELESS_ANNOTATION,
365362
ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_USELESS_SUPPRESS,
366-
ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_MISSING_NATIVE_TYPE_HINT,
367363
ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION,
368-
ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_USELESS_ANNOTATION,
369364
ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_USELESS_SUPPRESS,
370365
ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_LESS_SPECIFIC_NATIVE_TYPE_HINT,
371366
]);

0 commit comments

Comments
 (0)