1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +01:00

unnecessary cast

This commit is contained in:
orklah 2021-09-26 23:22:35 +02:00
parent 5d6d3df4cf
commit db395d5605

View File

@ -374,7 +374,7 @@ class Union implements TypeNode
$types[] = 'int'; $types[] = 'int';
$printed_int = true; $printed_int = true;
} else { } else {
$types[] = (string)$type->getKey(); $types[] = $type->getKey();
} }
} }
@ -390,7 +390,7 @@ class Union implements TypeNode
$types = []; $types = [];
foreach ($this->types as $type) { foreach ($this->types as $type) {
$types[] = (string)$type->getId(); $types[] = $type->getId();
} }
sort($types); sort($types);