You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan.neon
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
parameters:
2
2
ignoreErrors:
3
3
- "#PHPDoc tag \\@throws with type Psr\\\\Container\\\\ContainerExceptionInterface is not subtype of Throwable#"
4
-
- "#Property TheCodingMachine\\\\GraphQLite\\\\Types\\\\ResolvableInputObjectType::$resolve \\(array<int, object|string>&callable\\) does not accept array<int,object|string>#"
4
+
#- "#Property TheCodingMachine\\\\GraphQLite\\\\Types\\\\ResolvableInputObjectType::\\$resolve \\(array<int, object\\|string>&callable\\) does not accept array<int,object\\|string>#"
5
5
- "#Variable \\$prefetchRefMethod might not be defined.#"
6
-
- "#Parameter \\#2 $type of class TheCodingMachine\\\\GraphQLite\\\\Parameters\\\\InputTypeParameter constructor expects GraphQL\\\\Type\\\\Definition\\\\InputType&GraphQL\\\\Type\\\\Definition\\\\Type, GraphQL\\\\Type\\\\Definition\\\\InputType|GraphQL\\\\Type\\\\Definition\\\\Type given.#"
7
-
- "#Parameter .* of class ReflectionMethod constructor expects string, object|string given.#"
8
-
- "#Method TheCodingMachine\\\\GraphQLite\\\\Types\\\\MutableObjectType::getFields() should return array<GraphQL\\\\Type\\\\Definition\\\\FieldDefinition> but returns array|float|int.#"
#- "#Parameter \\#2 \\$type of class TheCodingMachine\\\\GraphQLite\\\\Parameters\\\\InputTypeParameter constructor expects GraphQL\\\\Type\\\\Definition\\\\InputType&GraphQL\\\\Type\\\\Definition\\\\Type, GraphQL\\\\Type\\\\Definition\\\\InputType\\|GraphQL\\\\Type\\\\Definition\\\\Type given.#"
7
+
- "#Parameter .* of class ReflectionMethod constructor expects string, object\\|string given.#"
8
+
-
9
+
message:'#Method TheCodingMachine\\GraphQLite\\Types\\Mutable(Interface|Object)Type::getFields\(\) should return array<GraphQL\\Type\\Definition\\FieldDefinition> but returns array\|float\|int#'
message:'#Property TheCodingMachine\GraphQLite\Annotations\Type::$class \(class-string<object>|null\) does not accept string.#'
27
+
message:'#Property TheCodingMachine\GraphQLite\Annotations\Type::\$class \(class-string<object>\\|null\) does not accept string.#'
26
28
path:src/Annotations/Type.php
29
+
-
30
+
message:'#Method TheCodingMachine\\GraphQLite\\AnnotationReader::getMethodAnnotations\(\) should return array<int, T of object> but returns array<object>.#'
31
+
path:src/AnnotationReader.php
27
32
- '#Call to an undefined method GraphQL\\Error\\ClientAware::getMessage()#'
33
+
# Needed because of a bug in PHP-CS
34
+
- '#PHPDoc tag @param for parameter \$args with type mixed is not subtype of native type array<int, mixed>.#'
returnnewself('For ' . self::extendTypeToString($extendType) . ' annotation declared in class "' . $className . '", the pointed at GraphQL type cannot be extended. You can only target types extending the MutableObjectType (like types created with the @Type annotation).');
Copy file name to clipboardExpand all lines: src/Mappers/DuplicateMappingException.php
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ public static function createForType(string $sourceClass, string $type1, string
15
15
thrownewself(sprintf("The class '%s' should be mapped by only one GraphQL type class. Two classes are pointing via the @Type annotation to this class: '%s' and '%s'", $sourceClass, $type1, $type2));
thrownewself(sprintf("The class '%s' should be mapped to only one GraphQL Input type. Two methods are pointing via the @Factory annotation to this class: '%s::%s' and '%s::%s'", $sourceClass, $className1, $method1, $className2, $method2));
Copy file name to clipboardExpand all lines: src/Mappers/GlobAnnotationsCache.php
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
*/
12
12
finalclass GlobAnnotationsCache
13
13
{
14
-
/** @var string|null */
14
+
/** @var class-string<object>|null */
15
15
private$typeClassName;
16
16
17
17
/** @var string|null */
@@ -20,19 +20,25 @@ final class GlobAnnotationsCache
20
20
/** @var bool */
21
21
private$default;
22
22
23
-
/** @var array<string, array<int, string|bool>> An array mapping a factory method name to an input name / class name / default flag / declaring class */
23
+
/** @var array<string, array{0: string, 1:class-string<object>|null, 2:bool, 3:class-string<object>}> An array mapping a factory method name to an input name / class name / default flag / declaring class */
24
24
private$factories = [];
25
25
26
-
/** @var array<string, array<int, string>> An array mapping a decorator method name to an input name / declaring class */
26
+
/** @var array<string, array{0: string, 1:class-string<object>}> An array mapping a decorator method name to an input name / declaring class */
0 commit comments