1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Remove PHP7-only language

This commit is contained in:
Matt Brown 2018-05-11 17:34:10 -04:00
parent e9411eec76
commit 87a11bd86a

View File

@ -708,7 +708,7 @@ class Union
if (count($this->types) !== 1) {
return false;
}
$string_type = $this->types['string'] ?? null;
$string_type = isset($this->types['string']) ? $this->types['string'] : null;
if (!($string_type instanceof TLiteralString)) {
return false;
}