-
Notifications
You must be signed in to change notification settings - Fork 98
/
phpstan.neon
44 lines (44 loc) · 2.59 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
#includes:
# - vendor/phpstan/phpstan/conf/bleedingEdge.neon TODO: Try to add this
parameters:
tmpDir: .phpstan-cache
paths:
- src
excludePaths:
# TODO: exlude only for PHP < 8.1
- src/Mappers/Root/EnumTypeMapper.php
- src/Types/EnumType.php
level: 8
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
ignoreErrors:
- "#PHPDoc tag \\@throws with type Psr\\\\Container\\\\ContainerExceptionInterface is not subtype of Throwable#"
- "#Parameter .* of class ReflectionMethod constructor expects string(\\|null)?, object\\|string given.#"
- "#PHPDoc tag @throws with type Psr\\\\SimpleCache\\\\InvalidArgumentException is not subtype of Throwable#"
- '#Variable \$context might not be defined.#'
- '#Parameter \#1 \$callable of class TheCodingMachine\\GraphQLite\\Middlewares\\ServiceResolver constructor expects array{object, string}&callable\(\): mixed, array{object, non-empty-string} given.#'
-
message: '#Parameter .* of class GraphQL\\Error\\Error constructor expects#'
path: src/Exceptions/WebonyxErrorHandler.php
-
message: '#Thrown exceptions in a catch block must bundle the previous exception#'
path: src/Mappers/Root/IteratorTypeMapper.php
-
message: '#Parameter \#2 \$subType of method .* expects#'
path: src/Mappers/Root/IteratorTypeMapper.php
-
message: '#Method TheCodingMachine\\GraphQLite\\Mappers\\StaticTypeMapper::castOutputTypeToMutable\(\) should return TheCodingMachine\\GraphQLite\\Mappers\\Proxys\\MutableInterfaceTypeAdapter\|TheCodingMachine\\GraphQLite\\Mappers\\Proxys\\MutableObjectTypeAdapter but returns GraphQL\\Type\\Definition\\InterfaceType|GraphQL\\Type\\Definition\\ObjectType.#'
path: src/Mappers/StaticTypeMapper.php
-
message: '#Unreachable statement - code above always terminates.#'
path: src/Http/WebonyxGraphqlMiddleware.php
-
message: '#Property TheCodingMachine\\GraphQLite\\Annotations\\Type::\$class \(class-string<object>\|null\) does not accept string.#'
path: src/Annotations/Type.php
-
message: '#Method TheCodingMachine\\GraphQLite\\AnnotationReader::(getMethodAnnotations|getPropertyAnnotations)\(\) should return array<int, T of object> but returns array<object>.#'
path: src/AnnotationReader.php
-
message: '#Call to an undefined method object::__toString\(\)#'
path : src/Types/ID.php