From db395d56056919dbc1f4d7bbf3074af3ca154eea Mon Sep 17 00:00:00 2001 From: orklah Date: Sun, 26 Sep 2021 23:22:35 +0200 Subject: [PATCH] unnecessary cast --- src/Psalm/Type/Union.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Type/Union.php b/src/Psalm/Type/Union.php index 9c4bfb74b..66d541333 100644 --- a/src/Psalm/Type/Union.php +++ b/src/Psalm/Type/Union.php @@ -374,7 +374,7 @@ class Union implements TypeNode $types[] = 'int'; $printed_int = true; } else { - $types[] = (string)$type->getKey(); + $types[] = $type->getKey(); } } @@ -390,7 +390,7 @@ class Union implements TypeNode $types = []; foreach ($this->types as $type) { - $types[] = (string)$type->getId(); + $types[] = $type->getId(); } sort($types);