Skip to content
Permalink
Browse files

Fix is_string call

  • Loading branch information...
muglug committed Aug 10, 2019
1 parent 460120e commit 3f78082720786ab79d9080a2dd3c6ebb8974a670
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php
@@ -1861,7 +1861,7 @@ protected static function processCustomAssertion(
$if_types[$var_id] = [[$prefix . $assertion->rule[0][0]]];
}
}
} elseif (is_string($assertion->var_id)
} elseif (\is_string($assertion->var_id)
&& strpos($assertion->var_id, '$this->') === 0
&& $expr instanceof PhpParser\Node\Expr\MethodCall
) {
@@ -1910,7 +1910,7 @@ protected static function processCustomAssertion(
$if_types[$var_id] = [[$negated_prefix . $assertion->rule[0][0]]];
}
}
} elseif (is_string($assertion->var_id)
} elseif (\is_string($assertion->var_id)
&& strpos($assertion->var_id, '$this->') === 0
&& $expr instanceof PhpParser\Node\Expr\MethodCall
) {

0 comments on commit 3f78082

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