Skip to content

Commit 8d67889

Browse files
Fix test
1 parent 231568c commit 8d67889

4 files changed

+1
-9
lines changed

src/Rules/Comparison/ImpossibleCheckTypeFunctionCallRule.php

-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
use PHPStan\Parser\LastConditionVisitor;
88
use PHPStan\Rules\Rule;
99
use PHPStan\Rules\RuleErrorBuilder;
10-
use function in_array;
1110
use function sprintf;
12-
use function strtolower;
1311

1412
/**
1513
* @implements Rule<Node\Expr\FuncCall>

src/Type/Php/IsAFunctionTypeSpecifyingExtension.php

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1616
use PHPStan\Type\ObjectWithoutClassType;
1717
use PHPStan\Type\TypeCombinator;
18-
1918
use function count;
2019
use function strtolower;
2120

src/Type/Php/IsSubclassOfFunctionTypeSpecifyingExtension.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
use PHPStan\Type\Constant\ConstantBooleanType;
1414
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1515
use PHPStan\Type\Generic\GenericClassStringType;
16-
use PHPStan\Type\ObjectType;
1716
use PHPStan\Type\ObjectWithoutClassType;
1817
use PHPStan\Type\TypeCombinator;
19-
use PHPStan\Type\UnionType;
20-
2118
use function count;
2219
use function strtolower;
2320

tests/PHPStan/Analyser/TypeSpecifierTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,7 @@ public function dataCondition(): iterable
11331133
new Arg(new Variable('stringOrNull')),
11341134
new Arg(new Expr\ConstFetch(new Name('false'))),
11351135
]),
1136-
[
1137-
'$object' => 'object',
1138-
],
1136+
[],
11391137
[],
11401138
],
11411139
[

0 commit comments

Comments
 (0)