Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
52 lines (52 loc) · 3 KB
/
Copy pathphpstan.neon
File metadata and controls
52 lines (52 loc) · 3 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#includes:
# - vendor/phpstan/phpstan/conf/bleedingEdge.neon TODO: Try to add this
parameters:
tmpDir: .phpstan-cache
paths:
- src
level: 8
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
ignoreErrors:
# Collection exists in phpdocumentor/type-resolver 1 only, Generic in phpdocumentor/type-resolver 2 only
-
message: '#phpDocumentor\\Reflection\\(Types\\Collection|PseudoTypes\\Generic)#'
identifier: class.notFound
path: src/Mappers/Parameters/TypeHandler.php
-
message: '#phpDocumentor\\Reflection\\PseudoTypes\\Generic#'
identifier: class.notFound
paths:
- src/Mappers/Root/BaseTypeMapper.php
- src/Mappers/Root/IteratorTypeMapper.php
- "#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
-
identifier: missingType.generics