Skip to content

Commit

Permalink
Remove PHP7-only language
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 11, 2018
1 parent 8b55eba commit a01ecb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Type/Union.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ public function isSingleStringLiteral()
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;
}
Expand Down

0 comments on commit a01ecb6

Please sign in to comment.