Skip to content

Commit

Permalink
unnecessary array_push
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Dec 27, 2021
1 parent 07bbd3f commit 2499e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Type/Comparator/UnionTypeComparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ private static function getTypeParts(
$atomic_types = [];
foreach ($union_type->getAtomicTypes() as $atomic_type) {
if (!$atomic_type instanceof TTypeAlias) {
array_push($atomic_types, $atomic_type);
$atomic_types[] = $atomic_type;
continue;
}
$expanded = TypeExpander::expandAtomic(
Expand All @@ -499,7 +499,7 @@ private static function getTypeParts(
true
);
if ($expanded instanceof Atomic) {
array_push($atomic_types, $expanded);
$atomic_types[] = $expanded;
continue;
}

Expand Down

0 comments on commit 2499e02

Please sign in to comment.