Skip to content

Commit 586da1e

Browse files
authored
improve
1 parent b1e6b32 commit 586da1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

visitor.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ public function format(int $level = 1): array
200200

201201
if ($this->isArrayShape()) {
202202
if ($this->name === null) {
203-
$strings = array_merge($strings, $childStrings);
204-
205-
return $strings;
203+
return array_merge($strings, $childStrings);
206204
}
207205

208206
$strings[] = sprintf(
@@ -218,7 +216,7 @@ public function format(int $level = 1): array
218216
return $strings;
219217
}
220218

221-
// Not an array with a shape
219+
// Array without shape
222220
$strings[] = sprintf(
223221
'%s%s%s: array<int|string, %s{',
224222
$padding,

0 commit comments

Comments
 (0)