Skip to content

Commit

Permalink
Remove further ??
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 11, 2018
1 parent a01ecb6 commit 2844036
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 @@ -724,7 +724,7 @@ public function getSingleStringLiteral()
if (count($this->types) !== 1) {
throw new \InvalidArgumentException("Not a string literal");
}
$string_type = $this->types['string'] ?? null;
$string_type = isset($this->types['string']) ? $this->types['string'] : null;
if (!($string_type instanceof TLiteralString)) {
throw new \InvalidArgumentException("Not a string literal");
}
Expand Down

0 comments on commit 2844036

Please sign in to comment.