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

Fix syntax issue in PHP 7.2

Fixes #5206
This commit is contained in:
Matt Brown 2021-02-12 11:09:41 -05:00
parent 257a1ca672
commit c9ff1eee63

View File

@ -1631,7 +1631,7 @@ class Codebase
null,
null,
null,
$property_name,
$property_name
);
}
} elseif ($atomic_type instanceof Type\Atomic\TLiteralString) {
@ -1642,7 +1642,7 @@ class Codebase
null,
null,
null,
"'$atomic_type->value'",
"'$atomic_type->value'"
);
} elseif ($atomic_type instanceof Type\Atomic\TLiteralInt) {
$completion_items[] = new \LanguageServerProtocol\CompletionItem(
@ -1652,7 +1652,7 @@ class Codebase
null,
null,
null,
(string) $atomic_type->value,
(string) $atomic_type->value
);
} elseif ($atomic_type instanceof Type\Atomic\TScalarClassConstant) {
$const = $atomic_type->fq_classlike_name . '::' . $atomic_type->const_name;
@ -1663,7 +1663,7 @@ class Codebase
null,
null,
null,
$const,
$const
);
}
}