Sylius/phpstan.neon
Kamil Kokot f130f70d4d
Merge branch '1.2' into 1.3
* 1.2:
  Fixed sorting path while sorting by position
  Remove PHPStan extension for Symfony
  Make PhpSpec passing after fixing PHPStan warnings
  Make PHPStan for specs passing
  Fix spec classnames / filenames mismatches
  Setup spec paths in autoload-dev in the main package
  Update PhpSpec to ^5.0
2019-01-02 13:40:12 +01:00

46 lines
2 KiB
Text

includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-webmozart-assert/extension.neon
parameters:
reportUnmatchedIgnoredErrors: false
excludes_analyse:
# Makes PHPStan crash
- '**/DependencyInjection/Configuration.php'
# Test dependencies
- '**/Bundle/*/test/app/**.php'
- '**/Bundle/*/test/src/**.php'
- '**/Bundle/*/Tests/Functional/app/**.php'
# These packages aren't in require-dev of the global package
- '**MongoDB**'
- '**ODM**'
# Temporary PhpMatcherDumper class
- 'src/Sylius/Bundle/CoreBundle/Routing/Matcher/Dumper/PhpMatcherDumper.php'
ignoreErrors:
# Magic calls
- '/Call to an undefined static method Webmozart\\Assert\\Assert::all/'
- '/Call to an undefined static method Webmozart\\Assert\\Assert::nullOr/'
- '/Call to an undefined method Faker\\Generator::/'
- '/Access to an undefined property Faker\\Generator::/'
- '/Method Mockery\\MockInterface::shouldReceive\(\) invoked with 1 parameter, 0 required/'
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface/'
- '/Call to an undefined method Mockery\\ExpectationInterface|Mockery\\HigherOrderMessage::/'
# PhpSpec related errors
- '/Access to an undefined property spec\\/'
- '/Call to an undefined method spec\\/'
- '/Call to an undefined static method spec\\/'
# These packages aren't in require-dev of the global package
- '/Class Doctrine\\Bundle\\MongoDBBundle/'
- '/Class Doctrine\\Bundle\\PHPCRBundle/'
# Symfony 4.0 BC layer
- '/Symfony\\Component\\ExpressionLanguage\\ParserCache\\ParserCacheInterface/'
- '/Symfony\\Component\\ExpressionLanguage\\ParserCache\\ParserCacheAdapter/'
- '/Class Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder does not have a constructor and must be instantiated without any parameters/'