Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed May 10, 2022
1 parent 2fa51e0 commit 1fb313c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Analyser/MutatingScope.php
Expand Up @@ -695,6 +695,8 @@ private function resolveType(Expr $node): Type
if ($type->isNonEmptyString()->yes()) {
$accessories[] = new AccessoryNonEmptyStringType();
}
// it is not useful to apply numeric and literal strings here.
// numeric string isn't certainly kept numeric: 3v4l.org/JERDB

return TypeCombinator::intersect(...$accessories);
}
Expand Down

0 comments on commit 1fb313c

Please sign in to comment.