Skip to content

Commit c4d370f

Browse files
authored
[Maintenance] Fix ecs and phpstan (#424)
2 parents 6ad774d + b158347 commit c4d370f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ecs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
2424

2525
$config->parallel();
26-
$config->paths(['src', 'spec']);
26+
$config->paths(['src', 'tests/DependencyInjection', 'tests/Unit', 'tests/Behat']);
2727
$config->skip([
2828
InlineDocCommentDeclarationSniff::class . '.MissingVariable',
2929
InlineDocCommentDeclarationSniff::class . '.NoAssignment',
30-
VisibilityRequiredFixer::class => ['*Spec.php'],
3130
'**/var/*',
3231
'src/Migrations/*',
3332
]);

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ parameters:
1717
- '/Method Sylius\\InvoicingPlugin\\[a-zA-Z\\]+::getFlashBag\(\) should return Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface but returns Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface\./'
1818
- '/Method Sylius\\InvoicingPlugin\\Security\\Voter\\InvoiceVoter::supports\(\) has parameter \$attribute with no typehint specified./'
1919
- '/Method Sylius\\InvoicingPlugin\\Security\\Voter\\InvoiceVoter::supports\(\) has parameter \$subject with no typehint specified./'
20+
- '/Call to method scalarNode\(\) on an unknown class Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder<Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition>./'
2021
- '/expects string, string\|null given\.$/'

0 commit comments

Comments
 (0)