-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathphpstan.neon
More file actions
22 lines (19 loc) · 1.36 KB
/
phpstan.neon
File metadata and controls
22 lines (19 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parameters:
level: max
reportUnmatchedIgnoredErrors: false
paths:
- 'src/'
excludePaths:
# Makes PHPStan crash
- 'src/DependencyInjection/Configuration.php'
ignoreErrors:
- identifier: missingType.generics
- identifier: missingType.iterableValue
- '/Call to method \w+\(\) on an unknown class Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder/'
- '/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\./'
- '/Method Sylius\\InvoicingPlugin\\Security\\Voter\\InvoiceVoter::supports\(\) has parameter \$attribute with no typehint specified./'
- '/Method Sylius\\InvoicingPlugin\\Security\\Voter\\InvoiceVoter::supports\(\) has parameter \$subject with no typehint specified./'
- '/Call to method scalarNode\(\) on an unknown class Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder<Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition>./'
- '/expects string, string\|null given\.$/'