Skip to content

Commit

Permalink
Fix concat emptiness
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jan 7, 2020
1 parent cc9e0fa commit eaae84c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ function ($c) {

if ($stmt_left_type
&& $stmt_right_type
&& $stmt_left_type->getId() === 'non-empty-string'
&& $stmt_right_type->getId() === 'non-empty-string'
&& ($stmt_left_type->getId() === 'non-empty-string'
|| $stmt_right_type->getId() === 'non-empty-string')
) {
$stmt_type = new Type\Union([new Type\Atomic\TNonEmptyString()]);
} else {
Expand Down

0 comments on commit eaae84c

Please sign in to comment.