forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
27 lines (22 loc) · 1.13 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameters:
excludes_analyse:
# Makes PHPStan crash
- '**/DependencyInjection/Configuration.php'
# Test dependencies
- '**/Bundle/*/test/app/**.php'
- '**/Bundle/*/test/src/**.php'
# These packages aren't in require-dev of the global package
- '**MongoDB**'
- '**ODM**'
ignoreErrors:
# Specs autoloading - needs a project-wide change to Sylius\Foo\Bar\spec\...
- '/Class spec\\Sylius\\[^ ]++ was not found while trying to analyse it - autoloading is not probably configured properly./'
# 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/'
# These packages aren't in require-dev of the global package
- '/Class Doctrine\\Bundle\\MongoDBBundle/'
- '/Class Doctrine\\Bundle\\PHPCRBundle/'