|
69 | 69 | use PhpCsFixer\Fixer\FunctionNotation\LambdaNotUsedImportFixer; |
70 | 70 | use PhpCsFixer\Fixer\FunctionNotation\NoUnreachableDefaultArgumentValueFixer; |
71 | 71 | use PhpCsFixer\Fixer\FunctionNotation\NoUselessSprintfFixer; |
72 | | -use PhpCsFixer\Fixer\FunctionNotation\PhpdocToParamTypeFixer; |
73 | | -use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer; |
74 | | -use PhpCsFixer\Fixer\FunctionNotation\PhpdocToReturnTypeFixer; |
75 | 72 | use PhpCsFixer\Fixer\FunctionNotation\ReturnTypeDeclarationFixer; |
76 | 73 | use PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer; |
77 | 74 | use PhpCsFixer\Fixer\Import\NoLeadingImportSlashFixer; |
|
133 | 130 | use PhpCsFixer\Fixer\Whitespace\NoExtraBlankLinesFixer; |
134 | 131 | use PhpCsFixer\Fixer\Whitespace\NoWhitespaceInBlankLineFixer; |
135 | 132 | use PhpCsFixer\Fixer\Whitespace\TypeDeclarationSpacesFixer; |
136 | | -use SlevomatCodingStandard\Sniffs\Classes\RequireConstructorPropertyPromotionSniff; |
137 | 133 | use SlevomatCodingStandard\Sniffs\ControlStructures\RequireNullSafeObjectOperatorSniff; |
138 | 134 | use SlevomatCodingStandard\Sniffs\Exceptions\ReferenceThrowableOnlySniff; |
139 | 135 | use SlevomatCodingStandard\Sniffs\Functions\RequireTrailingCommaInCallSniff; |
140 | 136 | use SlevomatCodingStandard\Sniffs\Functions\RequireTrailingCommaInDeclarationSniff; |
141 | | -use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff; |
142 | | -use SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff; |
143 | | -use SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff; |
144 | 137 | use SlevomatCodingStandard\Sniffs\TypeHints\UnionTypeHintFormatSniff; |
145 | 138 | use Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixer; |
146 | 139 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
|
377 | 370 | ReferenceThrowableOnlySniff::class, |
378 | 371 | // The @param, @return, @var and inline @var annotations should keep standard format |
379 | 372 | ParamReturnAndVarTagMalformsFixer::class, |
380 | | - // Takes `@var` annotation of non-mixed types and adjusts accordingly the property signature. |
381 | | - PhpdocToPropertyTypeFixer::class, |
382 | | - // Takes `@param` annotations of non-mixed types and adjusts accordingly the function signature. |
383 | | - PhpdocToParamTypeFixer::class, |
384 | | - // Takes `@return` annotation of non-mixed types and adjusts accordingly the function signature. |
385 | | - PhpdocToReturnTypeFixer::class, |
386 | | - // Promote constructor properties |
387 | | - // @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5956 |
388 | | - RequireConstructorPropertyPromotionSniff::class, |
389 | 373 |
|
390 | 374 | // switch -> match |
391 | 375 | // @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5894 |
392 | 376 |
|
393 | 377 | // Require \Stringable interface in classes implementing __toString() method |
394 | 378 | // > it may probably be a phpstan rule, more than cs rule - since it needs a class hierarchy to solve this |
395 | 379 | // @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/6235 |
396 | | - PropertyTypeHintSniff::class, |
397 | | - |
398 | | - ParameterTypeHintSniff::class, |
399 | | - ReturnTypeHintSniff::class, |
400 | 380 |
|
401 | 381 | // Multi-line arguments list in function/method declaration must have a trailing comma |
402 | 382 | RequireTrailingCommaInDeclarationSniff::class, |
|
531 | 511 | // Allow single line closures |
532 | 512 | ScopeClosingBraceSniff::class . '.ContentBefore' => null, |
533 | 513 |
|
534 | | - // Skip unwanted rules from PropertyTypeHintSniff |
535 | | - PropertyTypeHintSniff::class . '.' . PropertyTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION => null, |
536 | | - PropertyTypeHintSniff::class . '.' . PropertyTypeHintSniff::CODE_MISSING_ANY_TYPE_HINT => null, |
537 | | - |
538 | | - // Skip unwanted rules from ParameterTypeHintSniff |
539 | | - ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION => null, |
540 | | - ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_MISSING_ANY_TYPE_HINT => null, |
541 | | - |
542 | | - // Skip unwanted rules from ReturnTypeHintSniff |
543 | | - ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION => null, |
544 | | - ReturnTypeHintSniff::class . '.' . ReturnTypeHintSniff::CODE_MISSING_ANY_TYPE_HINT => null, |
545 | | - |
546 | 514 | // We use declare(strict_types=1); after opening tag |
547 | 515 | BlankLineAfterOpeningTagFixer::class => null, |
548 | 516 | ]); |
0 commit comments