-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon
29 lines (25 loc) · 1.34 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
28
29
parameters:
level: max
reportUnmatchedIgnoredErrors: false
paths:
- src
- tests/Behat
excludePaths:
# Makes PHPStan crash
- 'src/DependencyInjection/Configuration.php'
# Test dependencies
- 'tests/Application/app/**.php'
- 'tests/Application/src/**.php'
ignoreErrors:
-
identifier: missingType.generics # Temp
-
identifier: missingType.iterableValue
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'
- '/Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required\./'
- '/Parameter \#1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string given\./'
-
message: '/Cannot call method trans\(\) on Symfony\\Contracts\\Translation\\TranslatorInterface\|null\./'
path: src/Controller/ProductEnqueueController
# Move alias here when global alias are supported also on Psalm: https://github.com/vimeo/psalm/discussions/5376
typeAliases: