-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
41 lines (38 loc) · 2.01 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
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
level: 3
inferPrivatePropertyTypeFromConstructor: true
paths:
- ./src/
excludePaths:
# - 'src/Resources/skeleton'
# - */cache/*
analyse:
- ./vendor
reportUnmatchedIgnoredErrors: false
# checkMissingIterableValueType: false
# checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::canBeEnabled\(\)\.#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::canBeDisabled\(\)\.#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::addDefaultsIfNotSet\(\)\.#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::scalarNode\(\).#'
# Only available in ArrayNodeDefinition which is given
# False positive: clients are not dependencies of this project.
# -
# message: '#Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeDefinition::children#'
# path: ./src/Client/Provider
# -
# message: '#Return typehint of method KnpU\\OAuth2ClientBundle\\Client\\Provider\\[a-zA-Z0-9\\_]+::fetchUser\(\) has invalid type [a-zA-Z0-9\\_]#'
# path: ./src/Client/Provider
# False positive: using `::class` is not an error for those providers `::getProviderClass()` method.
# -
# message: '#Class [a-zA-Z0-9\\_]+ not found#'
# path: ./src/DependencyInjection/Providers
# The DependencyInjection returns are very complex to deal with
# -
# message: '#.*NodeParentInterface\|null.*#'
# path: ./src/DependencyInjection/Providers
# -
# message: '#.*NodeDefinition::children.*#'
# path: ./src/DependencyInjection