Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab authored and staabm committed May 16, 2022
1 parent 0832edc commit a5ad765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyser/TypeSpecifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function specifyTypesInCondition(
) {
$argType = $scope->getType($exprNode->getArgs()[0]->value);

if ($argType->isString()->yes() && !$argType->isNonEmptyString()->yes()) {
if ($argType->isString()->yes()) {
return $this->create(
$exprNode->getArgs()[0]->value,
TypeCombinator::intersect($argType, new AccessoryNonEmptyStringType()),
Expand Down

0 comments on commit a5ad765

Please sign in to comment.