Skip to content

Commit 2b89bf1

Browse files
committed
cs
1 parent 5dbc5de commit 2b89bf1

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

src/Type/Constant/ConstantBooleanType.php

-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
use PHPStan\TrinaryLogic;
99
use PHPStan\Type\BooleanType;
1010
use PHPStan\Type\ConstantScalarType;
11-
use PHPStan\Type\FloatType;
1211
use PHPStan\Type\GeneralizePrecision;
13-
use PHPStan\Type\IntegerType;
1412
use PHPStan\Type\MixedType;
1513
use PHPStan\Type\NeverType;
1614
use PHPStan\Type\StaticTypeFactory;
17-
use PHPStan\Type\StringType;
1815
use PHPStan\Type\Traits\ConstantScalarTypeTrait;
1916
use PHPStan\Type\Type;
2017
use PHPStan\Type\TypeCombinator;

src/Type/Constant/ConstantIntegerType.php

-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprIntegerNode;
66
use PHPStan\PhpDocParser\Ast\Type\ConstTypeNode;
77
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
8-
use PHPStan\Type\BooleanType;
98
use PHPStan\Type\CompoundType;
109
use PHPStan\Type\ConstantScalarType;
11-
use PHPStan\Type\FloatType;
1210
use PHPStan\Type\GeneralizePrecision;
1311
use PHPStan\Type\IntegerRangeType;
1412
use PHPStan\Type\IntegerType;
1513
use PHPStan\Type\IsSuperTypeOfResult;
16-
use PHPStan\Type\StringType;
1714
use PHPStan\Type\Traits\ConstantNumericComparisonTypeTrait;
1815
use PHPStan\Type\Traits\ConstantScalarTypeTrait;
1916
use PHPStan\Type\Type;

tests/PHPStan/Analyser/nsrt/bug-12393b.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function doFoo(string $s): void
160160
public function doBar(): void
161161
{
162162
$this->foo = 'foo';
163-
assertType('0', $this->foo);
163+
assertType('0', $this->foo); // should be *NEVER*
164164
}
165165
}
166166

0 commit comments

Comments
 (0)