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-baseline.neon
+9-24Lines changed: 9 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,5 @@
1
1
parameters:
2
2
ignoreErrors:
3
-
-
4
-
message:"#^Call to an undefined method ReflectionClass\\|ReflectionClassConstant\\|ReflectionMethod\\|ReflectionProperty\\:\\:getAttributes\\(\\)\\.$#"
5
-
count:1
6
-
path:src/Config/Parser/AttributeParser.php
7
-
8
3
-
9
4
message:"#^Abstract class Overblog\\\\GraphQLBundle\\\\Annotation\\\\Builder cannot be an Attribute class\\.$#"
10
5
count:1
@@ -90,16 +85,6 @@ parameters:
90
85
count:1
91
86
path:src/Config/Processor/BuilderProcessor.php
92
87
93
-
-
94
-
message:"#^Attribute class Overblog\\\\GraphQLBundle\\\\Definition\\\\ReturnTypeWillChange does not exist\\.$#"
95
-
count:1
96
-
path:src/Definition/Argument.php
97
-
98
-
-
99
-
message:"#^Used constant ReturnTypeWillChange not found\\.$#"
100
-
count:1
101
-
path:src/Definition/Argument.php
102
-
103
88
-
104
89
message:"#^Method Overblog\\\\GraphQLBundle\\\\Definition\\\\Builder\\\\TypeFactory\\:\\:create\\(\\) should return GraphQL\\\\Type\\\\Definition\\\\Type but returns object\\.$#"
message:"#^Method Overblog\\\\GraphQLBundle\\\\Error\\\\ExceptionConverter\\:\\:convertException\\(\\) should return Throwable but returns object\\.$#"
message:"#^Parameter \\#1 \\$.* of function count expects array\\|Countable, iterable\\<Overblog\\\\GraphQLBundle\\\\Relay\\\\Connection\\\\EdgeInterface\\> given\\.$#"
349
+
message:"#^Parameter \\#1 \\$value of function count expects array\\|Countable, iterable\\<Overblog\\\\GraphQLBundle\\\\Relay\\\\Connection\\\\EdgeInterface\\> given\\.$#"
@trigger_error('The attributes "values" on annotation @GQL\Enum is deprecated as of 0.14 and will be removed in 1.0. Use the @GQL\EnumValue annotation on the class itself instead.', E_USER_DEPRECATED);
@@ -69,39 +42,18 @@ class Field extends Annotation
69
42
/**
70
43
* @param string|null $name The GraphQL name of the field
71
44
* @param string|null $type The GraphQL type of the field
72
-
* @param array $args An array of @GQL\Arg to describe arguments @deprecated
73
45
* @param string|null $resolve A expression resolver to resolve the field value
74
-
* @param mixed|null $argsBuilder A @GQL\ArgsBuilder to generate arguments @deprecated
75
-
* @param mixed|null $fieldBuilder A @GQL\FieldBuilder to generate the field @deprecated
76
46
* @param string|null $complexity A complexity expression
77
47
*/
78
48
publicfunction__construct(
79
-
string$name = null,
80
-
string$type = null,
81
-
array$args = [],
82
-
string$resolve = null,
83
-
$argsBuilder = null,
84
-
$fieldBuilder = null,
85
-
string$complexity = null
49
+
?string$name = null,
50
+
?string$type = null,
51
+
?string$resolve = null,
52
+
?string$complexity = null
86
53
) {
87
54
$this->name = $name;
88
55
$this->type = $type;
89
-
$this->args = $args;
90
56
$this->resolve = $resolve;
91
-
$this->argsBuilder = $argsBuilder;
92
-
$this->fieldBuilder = $fieldBuilder;
93
57
$this->complexity = $complexity;
94
-
95
-
if (null !== $argsBuilder) {
96
-
@trigger_error('The attributes "argsBuilder" on annotation @GQL\Field is deprecated as of 0.14 and will be removed in 1.0. Use a @ArgsBuilder annotation on the property or method instead.', E_USER_DEPRECATED);
97
-
}
98
-
99
-
if (null !== $fieldBuilder) {
100
-
@trigger_error('The attributes "fieldBuilder" on annotation @GQL\Field is deprecated as of 0.14 and will be removed in 1.0. Use a @FieldBuilder annotation on the property or method instead.', E_USER_DEPRECATED);
101
-
}
102
-
103
-
if (!empty($args)) {
104
-
@trigger_error('The attributes "args" on annotation @GQL\Field is deprecated as of 0.14 and will be removed in 1.0. Use the @Arg annotation on the property or method instead.', E_USER_DEPRECATED);
@trigger_error('The attributes "targetType" on annotation @GQL\Mutation is deprecated as of 0.14 and will be removed in 1.0. Use the "targetTypes" attributes instead.', E_USER_DEPRECATED);
@trigger_error('The attributes "targetType" on annotation @GQL\Query is deprecated as of 0.14 and will be removed in 1.0. Use the "targetTypes" attributes instead.', E_USER_DEPRECATED);
* @param string[] $interfaces List of GraphQL interfaces implemented by the type
59
50
* @param bool $isRelay Set to true to make the type compatible with relay
60
51
* @param string|null $resolveField An expression to resolve the field value
61
-
* @param array<FieldsBuilder> $builders A list of fields builder to use @deprecated
62
52
* @param string|null $isTypeOf An expression to resolve if the field is of given type
63
53
*/
64
54
publicfunction__construct(
65
55
string$name = null,
66
56
array$interfaces = [],
67
57
bool$isRelay = false,
68
58
string$resolveField = null,
69
-
string$isTypeOf = null,
70
-
array$builders = []
59
+
string$isTypeOf = null
71
60
) {
72
61
$this->name = $name;
73
62
$this->interfaces = $interfaces;
74
63
$this->isRelay = $isRelay;
75
64
$this->resolveField = $resolveField;
76
65
$this->isTypeOf = $isTypeOf;
77
-
$this->builders = $builders;
78
-
79
-
if (!empty($builders)) {
80
-
@trigger_error('The attributes "builders" on annotation @GQL\Type is deprecated as of 0.14 and will be removed in 1.0. Use the @FieldsBuilder directly on the class itself.', E_USER_DEPRECATED);
0 commit comments