-
Notifications
You must be signed in to change notification settings - Fork 201
/
phpstan.neon
69 lines (59 loc) · 2.76 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
parameters:
level: 6
customRulesetUsed: true
paths:
- .
ignoreErrors:
# We inherit a lot of Drupal core docs that don't specify iterable types on
# arrays, not sure we can fix this in a good way.
- identifier: missingType.iterableValue
# new static() is a best practice in Drupal, so we cannot fix that.
- "#^Unsafe usage of new static\\(\\)\\.$#"
# We forgot to use return type hints on some interfaces, cannot be changed
# in stable 4.0.
# @todo use return type hints everywhere for 5.0.
-
message: "#^Method Drupal\\\\graphql\\\\Plugin\\\\PersistedQueryPluginInterface\\:\\:setWeight\\(\\) has no return type specified\\.$#"
count: 1
path: src/Plugin/PersistedQueryPluginInterface.php
-
message: "#^Method Drupal\\\\graphql\\\\Plugin\\\\SchemaExtensionPluginInterface\\:\\:registerResolvers\\(\\) has no return type specified\\.$#"
count: 1
path: src/Plugin/SchemaExtensionPluginInterface.php
-
message: "#^Method Drupal\\\\graphql\\\\Entity\\\\ServerInterface\\:\\:addPersistedQueryInstance\\(\\) has no return type specified\\.$#"
count: 1
path: src/Entity/ServerInterface.php
-
message: "#^Method Drupal\\\\graphql\\\\Entity\\\\ServerInterface\\:\\:removeAllPersistedQueryInstances\\(\\) has no return type specified\\.$#"
count: 1
path: src/Entity/ServerInterface.php
-
message: "#^Method Drupal\\\\graphql\\\\Entity\\\\ServerInterface\\:\\:removePersistedQueryInstance\\(\\) has no return type specified\\.$#"
count: 1
path: src/Entity/ServerInterface.php
# @todo Some leftover \Drupal calls that can be fixed later.
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: examples/graphql_example/src/Wrappers/QueryConnection.php
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 3
path: src/Controller/ServerListBuilder.php
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: src/GraphQL/Execution/Executor.php
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: src/Plugin/GraphQL/DataProducer/Entity/Fields/Image/ImageDerivative.php
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: src/Plugin/GraphQL/DataProducer/EntityDefinition/EntityDefinition.php
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: src/Plugin/GraphQL/DataProducer/User/PasswordReset.php