From d98b57235e3632437bf6c7157940050472b9e283 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Sun, 7 Dec 2025 11:53:09 +0100 Subject: [PATCH] Space after comma in array Is the more common syntax (psalm, phpstan, WP) and also already used in e.g. ArrayShape.php --- src/Types/AbstractList.php | 2 +- src/Types/Iterable_.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Types/AbstractList.php b/src/Types/AbstractList.php index 68c1f88c..cc403ecf 100644 --- a/src/Types/AbstractList.php +++ b/src/Types/AbstractList.php @@ -81,7 +81,7 @@ public function __toString(): string } if ($this->keyType) { - return 'array<' . $this->keyType . ',' . $this->valueType . '>'; + return 'array<' . $this->keyType . ', ' . $this->valueType . '>'; } if ($this->valueType instanceof Compound) { diff --git a/src/Types/Iterable_.php b/src/Types/Iterable_.php index f7d2264b..3ac6ef6c 100644 --- a/src/Types/Iterable_.php +++ b/src/Types/Iterable_.php @@ -30,7 +30,7 @@ public function __toString(): string } if ($this->keyType) { - return 'iterable<' . $this->keyType . ',' . $this->valueType . '>'; + return 'iterable<' . $this->keyType . ', ' . $this->valueType . '>'; } return 'iterable<' . $this->valueType . '>';