We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
treatPhpDocTypesAsCertain
1 parent 5f5de22 commit 24246f3Copy full SHA for 24246f3
src/Analyser/MutatingScope.php
@@ -571,11 +571,7 @@ private function resolveType(Expr $node): Type
571
}
572
573
if ($node instanceof \PhpParser\Node\Expr\BitwiseNot) {
574
- if ($this->treatPhpDocTypesAsCertain) {
575
- $exprType = $this->getType($node->expr);
576
- } else {
577
- $exprType = $this->getNativeType($node->expr);
578
- }
+ $exprType = $this->getType($node->expr);
579
return TypeTraverser::map($exprType, static function (Type $type, callable $traverse): Type {
580
if ($type instanceof UnionType || $type instanceof IntersectionType) {
581
return $traverse($type);
0 commit comments