@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|InputFieldDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|ScalarDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|SchemaFieldDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface|UnionDefinitionNode $ast |
27 | - * @return \Generator|mixed |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @param Readable $file |
25 | 25 | * @param RuleInterface $ast |
26 | - * @return \Generator|mixed|Definition |
|
26 | + * @return \Generator |
|
27 | 27 | */ |
28 | 28 | public function build(Readable $file, RuleInterface $ast) |
29 | 29 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param Readable $file |
26 | 26 | * @param RuleInterface $ast |
27 | - * @return \Generator|mixed|void |
|
27 | + * @return \Generator |
|
28 | 28 | */ |
29 | 29 | public function build(Readable $file, RuleInterface $ast) |
30 | 30 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @param Readable $file |
25 | 25 | * @param RuleInterface|DirectiveValueNode $ast |
26 | - * @return \Generator|mixed|void |
|
26 | + * @return \Generator |
|
27 | 27 | */ |
28 | 28 | public function build(Readable $file, RuleInterface $ast) |
29 | 29 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @param Readable $file |
24 | - * @param AstValueInterface|RuleInterface $ast |
|
24 | + * @param RuleInterface $ast |
|
25 | 25 | * @return \Generator|mixed |
26 | 26 | */ |
27 | 27 | public function build(Readable $file, RuleInterface $ast) |
@@ -186,7 +186,7 @@ |
||
186 | 186 | /** |
187 | 187 | * Set the value at the given offset. |
188 | 188 | * |
189 | - * @param string|int $offset |
|
189 | + * @param string $offset |
|
190 | 190 | * @param mixed $value |
191 | 191 | * @return void |
192 | 192 | */ |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | { |
80 | 80 | $skipNullable = $this->skip === static::SKIP_NULL && $value === null; |
81 | 81 | |
82 | - $skipEmpty = $this->skip === static::SKIP_EMPTY && ! $value; |
|
82 | + $skipEmpty = $this->skip === static::SKIP_EMPTY && !$value; |
|
83 | 83 | |
84 | - if (! $skipEmpty && ! $skipNullable) { |
|
84 | + if (!$skipEmpty && !$skipNullable) { |
|
85 | 85 | $this->attributes[$key ?? \count($this->attributes)] = |
86 | 86 | \is_iterable($value) ? new self($value) : $value; |
87 | 87 | } |
@@ -139,9 +139,9 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function jsonSerialize() |
141 | 141 | { |
142 | - $applicator = function ($value) { |
|
142 | + $applicator = function($value) { |
|
143 | 143 | if (\is_object($value) && \method_exists($value, '__toString')) { |
144 | - return (string)$value; |
|
144 | + return (string) $value; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | return $value; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function toJson(int $options = 0): string |
160 | 160 | { |
161 | - return (string)\json_encode($this->jsonSerialize(), $options); |
|
161 | + return (string) \json_encode($this->jsonSerialize(), $options); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |