File tree 3 files changed +1
-7
lines changed
tests/PHPStan/Analyser/nsrt
3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 8
8
use PHPStan \TrinaryLogic ;
9
9
use PHPStan \Type \BooleanType ;
10
10
use PHPStan \Type \ConstantScalarType ;
11
- use PHPStan \Type \FloatType ;
12
11
use PHPStan \Type \GeneralizePrecision ;
13
- use PHPStan \Type \IntegerType ;
14
12
use PHPStan \Type \MixedType ;
15
13
use PHPStan \Type \NeverType ;
16
14
use PHPStan \Type \StaticTypeFactory ;
17
- use PHPStan \Type \StringType ;
18
15
use PHPStan \Type \Traits \ConstantScalarTypeTrait ;
19
16
use PHPStan \Type \Type ;
20
17
use PHPStan \Type \TypeCombinator ;
Original file line number Diff line number Diff line change 5
5
use PHPStan \PhpDocParser \Ast \ConstExpr \ConstExprIntegerNode ;
6
6
use PHPStan \PhpDocParser \Ast \Type \ConstTypeNode ;
7
7
use PHPStan \PhpDocParser \Ast \Type \TypeNode ;
8
- use PHPStan \Type \BooleanType ;
9
8
use PHPStan \Type \CompoundType ;
10
9
use PHPStan \Type \ConstantScalarType ;
11
- use PHPStan \Type \FloatType ;
12
10
use PHPStan \Type \GeneralizePrecision ;
13
11
use PHPStan \Type \IntegerRangeType ;
14
12
use PHPStan \Type \IntegerType ;
15
13
use PHPStan \Type \IsSuperTypeOfResult ;
16
- use PHPStan \Type \StringType ;
17
14
use PHPStan \Type \Traits \ConstantNumericComparisonTypeTrait ;
18
15
use PHPStan \Type \Traits \ConstantScalarTypeTrait ;
19
16
use PHPStan \Type \Type ;
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function doFoo(string $s): void
160
160
public function doBar (): void
161
161
{
162
162
$ this ->foo = 'foo ' ;
163
- assertType ('0 ' , $ this ->foo );
163
+ assertType ('0 ' , $ this ->foo ); // should be *NEVER*
164
164
}
165
165
}
166
166
You can’t perform that action at this time.
0 commit comments