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:
parent
e9411eec76
commit
87a11bd86a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user