diff --git a/phpstan.neon b/phpstan.neon index d9c4f93e..b7f1955a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,5 @@ parameters: level: max - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false reportUnmatchedIgnoredErrors: false paths: @@ -16,6 +14,8 @@ parameters: - 'tests/Application/src/**.php' ignoreErrors: + - identifier: missingType.generics + - identifier: missingType.iterableValue - '/Method Sylius\\InvoicingPlugin\\Entity\\\w+::id\(\) has no return type specified\./' - '/Method Sylius\\InvoicingPlugin\\Entity\\\w+::getId\(\) has no return type specified\./' - '/Method Sylius\\InvoicingPlugin\\[a-zA-Z\\]+::getFlashBag\(\) should return Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface but returns Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface\./' diff --git a/tests/Application/config/bundles.php b/tests/Application/config/bundles.php index f51687e6..03139abe 100644 --- a/tests/Application/config/bundles.php +++ b/tests/Application/config/bundles.php @@ -1,8 +1,6 @@ ['all' => true], Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], @@ -60,10 +58,5 @@ BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true], SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true], Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true], + Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class => ['all' => true], ]; - -if (SyliusCoreBundle::VERSION_ID >= '11300') { - $bundles[Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class] = ['all' => true]; -} - -return $bundles;