-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon.dist
32 lines (32 loc) · 2.13 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
parameters:
level: 8
paths:
- src
- tests
ignoreErrors:
# 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: '#Parameter \#2 \$callback of function array_filter expects \(callable\(int\|string\): mixed\)\|null, Closure\(string\): bool given\.#'
path: src/Misc/GeneralUtils.php