File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed
tests/PHPStan/Analyser/nsrt Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 88use PHPStan \TrinaryLogic ;
99use PHPStan \Type \BooleanType ;
1010use PHPStan \Type \ConstantScalarType ;
11- use PHPStan \Type \FloatType ;
1211use PHPStan \Type \GeneralizePrecision ;
13- use PHPStan \Type \IntegerType ;
1412use PHPStan \Type \MixedType ;
1513use PHPStan \Type \NeverType ;
1614use PHPStan \Type \StaticTypeFactory ;
17- use PHPStan \Type \StringType ;
1815use PHPStan \Type \Traits \ConstantScalarTypeTrait ;
1916use PHPStan \Type \Type ;
2017use PHPStan \Type \TypeCombinator ;
Original file line number Diff line number Diff line change 55use PHPStan \PhpDocParser \Ast \ConstExpr \ConstExprIntegerNode ;
66use PHPStan \PhpDocParser \Ast \Type \ConstTypeNode ;
77use PHPStan \PhpDocParser \Ast \Type \TypeNode ;
8- use PHPStan \Type \BooleanType ;
98use PHPStan \Type \CompoundType ;
109use PHPStan \Type \ConstantScalarType ;
11- use PHPStan \Type \FloatType ;
1210use PHPStan \Type \GeneralizePrecision ;
1311use PHPStan \Type \IntegerRangeType ;
1412use PHPStan \Type \IntegerType ;
1513use PHPStan \Type \IsSuperTypeOfResult ;
16- use PHPStan \Type \StringType ;
1714use PHPStan \Type \Traits \ConstantNumericComparisonTypeTrait ;
1815use PHPStan \Type \Traits \ConstantScalarTypeTrait ;
1916use PHPStan \Type \Type ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments