Skip to content

Commit d98b572

Browse files
committed
Space after comma in array
Is the more common syntax (psalm, phpstan, WP) and also already used in e.g. ArrayShape.php
1 parent fb05a34 commit d98b572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Types/AbstractList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __toString(): string
8181
}
8282

8383
if ($this->keyType) {
84-
return 'array<' . $this->keyType . ',' . $this->valueType . '>';
84+
return 'array<' . $this->keyType . ', ' . $this->valueType . '>';
8585
}
8686

8787
if ($this->valueType instanceof Compound) {

src/Types/Iterable_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __toString(): string
3030
}
3131

3232
if ($this->keyType) {
33-
return 'iterable<' . $this->keyType . ',' . $this->valueType . '>';
33+
return 'iterable<' . $this->keyType . ', ' . $this->valueType . '>';
3434
}
3535

3636
return 'iterable<' . $this->valueType . '>';

0 commit comments

Comments
 (0)