diff --git a/ecs.php b/ecs.php index 94572bfd91..531e5faaab 100644 --- a/ecs.php +++ b/ecs.php @@ -2,6 +2,8 @@ declare(strict_types=1); +use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer; +use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer; use Shopsys\CodingStandards\CsFixer\ForbiddenPrivateVisibilityFixer; use Shopsys\CodingStandards\Sniffs\ForceLateStaticBindingForProtectedConstantsSniff; use Shopsys\CodingStandards\Sniffs\ObjectIsCreatedByFactorySniff; @@ -28,11 +30,16 @@ ]); $ecsConfig->skip([ - ObjectIsCreatedByFactorySniff::class => - [ - __DIR__ . '/src/Product/Detail/ProductDetailViewElasticsearchFactory.php', - __DIR__ . '/tests/*', - ], + ObjectIsCreatedByFactorySniff::class => [ + __DIR__ . '/src/Product/Detail/ProductDetailViewElasticsearchFactory.php', + __DIR__ . '/tests/*', + ], + PhpdocToPropertyTypeFixer::class => [ + __DIR__ . '/src/*', + ], + DeclareStrictTypesFixer::class => [ + __DIR__ . '/src/*', + ], ]); $ecsConfig->import(__DIR__ . '/vendor/shopsys/coding-standards/ecs.php', null, true);