Skip to content

Commit

Permalink
Fix trailing commas for PHP < 8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Jan 25, 2022
1 parent ba8234d commit a208623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Psalm/Internal/Type/TypeExpander.php
Expand Up @@ -67,7 +67,7 @@ public static function expandUnion(
bool $final = false,
bool $expand_generic = false,
bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false,
bool $throw_on_unresolvable_constant = false
): Union {
$return_type = clone $return_type;

Expand Down Expand Up @@ -137,7 +137,7 @@ public static function expandAtomic(
bool $final = false,
bool $expand_generic = false,
bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false,
bool $throw_on_unresolvable_constant = false
): array {
if ($return_type instanceof TNamedObject
|| $return_type instanceof TTemplateParam
Expand Down Expand Up @@ -702,7 +702,7 @@ private static function expandConditional(
bool $final = false,
bool $expand_generic = false,
bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false,
bool $throw_on_unresolvable_constant = false
): array {
$new_as_type = self::expandUnion(
$codebase,
Expand Down

0 comments on commit a208623

Please sign in to comment.