mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 01:09:38 +01:00
unnecessary cast
This commit is contained in:
parent
5d6d3df4cf
commit
db395d5605
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user