forked from knpuniversity/oauth2-client-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
35 lines (33 loc) · 1.5 KB
/
phpstan.neon.dist
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
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
paths:
- ./src/
excludes_analyse:
- */cache/*
ignoreErrors:
# False positive: clients are not dependencies of this project.
-
message: '#Return typehint of method KnpU\\OAuth2ClientBundle\\Client\\Provider\\[a-zA-Z0-9\\_]+::fetchUserFromToken\(\) has invalid type [a-zA-Z0-9\\_]#'
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: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::scalarNode\(\)\.#'
path: ./src/DependencyInjection/Providers
-
message: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::arrayNode\(\)\.#'
path: ./src/DependencyInjection/Providers
-
message: '#.*NodeDefinition::children.*#'
path: ./src/DependencyInjection
# Searches for root(), for backward compatibility with Symfony <4.2. Removed in 5.0
-
message: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root\(\)\.#'
path: ./src/DependencyInjection