forked from CommerceWeavers/SyliusSaferpayPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
26 lines (23 loc) · 1.94 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
parameters:
level: max
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
paths:
- src
- tests/Behat
excludePaths:
# Makes PHPStan crash
- 'src/DependencyInjection/Configuration.php'
# Test dependencies
- 'tests/Application/app/**.php'
- 'tests/Application/src/**.php'
ignoreErrors:
- '/Call to an undefined method Payum\\Core\\Request\\GetStatusInterface::getFirstModel\(\)./'
- '/Call to an undefined method Sylius\\Bundle\\PayumBundle\\Request\\ResolveNextRouteInterface::getModel\(\)./'
- '/Cannot call method getModel\(\) on mixed./'
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'
- '/Parameter #1 \$request \(Payum\\Core\\Request\\\w+\) of method CommerceWeavers\\SyliusSaferpayPlugin\\Payum\\Action\\\w+::execute\(\) should be contravariant with parameter \$request \(mixed\) of method Payum\\Core\\Action\\ActionInterface::execute\(\)/'
- '/Parameter #1 \$request \(Sylius\\Bundle\\PayumBundle\\Request\\\w+\) of method CommerceWeavers\\SyliusSaferpayPlugin\\Payum\\Action\\\w+::execute\(\) should be contravariant with parameter \$request \(mixed\) of method Payum\\Core\\Action\\ActionInterface::execute\(\)/'
- '/Parameter #1 \$request \(CommerceWeavers\\SyliusSaferpayPlugin\\Payum\\Request\\\w+\) of method CommerceWeavers\\SyliusSaferpayPlugin\\Payum\\Action\\\w+::execute\(\) should be contravariant with parameter \$request \(mixed\) of method Payum\\Core\\Action\\ActionInterface::execute\(\)/'
- '/Method CommerceWeavers\\SyliusSaferpayPlugin\\Payum\\Request\\\w+::getFirstModel\(\) has no return type specified./'