-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
38 lines (38 loc) · 2.47 KB
/
phpstan.neon.dist
File metadata and controls
38 lines (38 loc) · 2.47 KB
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
parameters:
level: 8
paths:
- src
- tests
ignoreErrors:
-
identifier: return.unusedType
# Some bug in PHPStan: false positive on comparison `$objectTypeFieldResolutionFeedbackStore->getErrors() !== []`
-
message: '#Strict comparison using !== between array{} and array{} will always evaluate to false\.#'
path: src/FieldResolvers/ObjectType/CoreGlobalObjectTypeFieldResolver.php
count: 2
# Cannot declare the type of the default value in the phpdoc, avoid the false positive
-
message: '#Default value of the parameter \#2 \$conditionalFields \(SplObjectStorage\<object, mixed\>\) of method PoP\\ComponentModel\\Engine\\EngineIterationFieldSet::__construct\(\) is incompatible with type SplObjectStorage\<PoP\\GraphQLParser\\Spec\\Parser\\Ast\\FieldInterface, array\<PoP\\GraphQLParser\\Spec\\Parser\\Ast\\FieldInterface\>\>\.#'
path: src/Engine/EngineIterationFieldSet.php
# Some bug in PHPStan
-
message: '#Strict comparison using !== between array{} and array{} will always evaluate to false\.#'
path: src/MutationResolverBridges/AbstractComponentMutationResolverBridge.php
-
message: '#Property PoP\\ComponentModel\\FieldResolvers\\ObjectType\\AbstractReflectionPropertyObjectTypeFieldResolver::\$reflectionInstance with generic class ReflectionClass does not specify its types: T#'
path: src/FieldResolvers/ObjectType/AbstractReflectionPropertyObjectTypeFieldResolver.php
-
message: '#Method PoP\\ComponentModel\\FieldResolvers\\ObjectType\\AbstractReflectionPropertyObjectTypeFieldResolver::getReflectionInstance\(\) return type with generic class ReflectionClass does not specify its types: T#'
path: src/FieldResolvers/ObjectType/AbstractReflectionPropertyObjectTypeFieldResolver.php
-
message: '#Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class-string<T of object>|T of object, string given\.#'
path: src/FieldResolvers/ObjectType/AbstractReflectionPropertyObjectTypeFieldResolver.php
# Some bug in PHPStan
-
message: '#Method PoP\\ComponentModel\\TypeResolvers\\ObjectType\\AbstractTransientObjectObjectTypeResolver::getID\(\) never returns null so it can be removed from the return type\.#'
path: src/TypeResolvers/ObjectType/AbstractTransientObjectObjectTypeResolver.php
# Some bug in PHPStan
-
message: '#Instanceof between array and PoP\\GraphQLParser\\ExtendedSpec\\Execution\\ValueResolutionPromiseInterface will always evaluate to false\.#'
path: src/Schema/InputCoercingService.php