@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public static function null(): TypeInterface |
71 | 71 | { |
72 | - return static::new(static::NULL); |
|
72 | + return static::new(static::null); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public static function const(): TypeInterface |
79 | 79 | { |
80 | - return static::new(static::CONST); |
|
80 | + return static::new(static::const); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | case $value instanceof \JsonSerializable: |
132 | 132 | break; |
133 | 133 | case \is_object($value) && \method_exists($value, '__toString'): |
134 | - $value = (string)$value; |
|
134 | + $value = (string) $value; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | $result[$key] = $value; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function offsetExists($offset): bool |
166 | 166 | { |
167 | - return $this->has((string)$offset); |
|
167 | + return $this->has((string) $offset); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function offsetGet($offset) |
175 | 175 | { |
176 | - return $this->get((string)$offset); |
|
176 | + return $this->get((string) $offset); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $offset = \count($this->attributes); |
187 | 187 | } |
188 | 188 | |
189 | - $this->set((string)$offset, $value); |
|
189 | + $this->set((string) $offset, $value); |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -194,6 +194,6 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function offsetUnset($offset): void |
196 | 196 | { |
197 | - $this->delete((string)$offset); |
|
197 | + $this->delete((string) $offset); |
|
198 | 198 | } |
199 | 199 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param mixed $value |
88 | - * @return \Generator|mixed|null |
|
88 | + * @return \Generator |
|
89 | 89 | */ |
90 | 90 | public function __invoke($value) |
91 | 91 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | /** |
96 | 96 | * @param array $args |
97 | - * @return \Generator|mixed |
|
97 | + * @return \Generator |
|
98 | 98 | */ |
99 | 99 | public function invoke(...$args): \Generator |
100 | 100 | { |