Skip to content
Permalink
Browse files

Fix concat emptiness

  • Loading branch information
muglug committed Jan 7, 2020
1 parent cc9e0fa commit eaae84c7f875876436cd82adf7f63a6d954324ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOpAnalyzer.php
@@ -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 {

0 comments on commit eaae84c

Please sign in to comment.
You can’t perform that action at this time.