1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Fix trailing commas for PHP < 8.0.

This commit is contained in:
AndrolGenhald 2022-01-25 17:09:51 -06:00
parent ba8234dd2c
commit a208623fa7

View File

@ -67,7 +67,7 @@ class TypeExpander
bool $final = false, bool $final = false,
bool $expand_generic = false, bool $expand_generic = false,
bool $expand_templates = false, bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false, bool $throw_on_unresolvable_constant = false
): Union { ): Union {
$return_type = clone $return_type; $return_type = clone $return_type;
@ -137,7 +137,7 @@ class TypeExpander
bool $final = false, bool $final = false,
bool $expand_generic = false, bool $expand_generic = false,
bool $expand_templates = false, bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false, bool $throw_on_unresolvable_constant = false
): array { ): array {
if ($return_type instanceof TNamedObject if ($return_type instanceof TNamedObject
|| $return_type instanceof TTemplateParam || $return_type instanceof TTemplateParam
@ -702,7 +702,7 @@ class TypeExpander
bool $final = false, bool $final = false,
bool $expand_generic = false, bool $expand_generic = false,
bool $expand_templates = false, bool $expand_templates = false,
bool $throw_on_unresolvable_constant = false, bool $throw_on_unresolvable_constant = false
): array { ): array {
$new_as_type = self::expandUnion( $new_as_type = self::expandUnion(
$codebase, $codebase,