Skip to content

Commit d7482af

Browse files
committed
EqualHandler
1 parent 135ab50 commit d7482af

File tree

4 files changed

+507
-19
lines changed

4 files changed

+507
-19
lines changed

phpstan-baseline.neon

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ parameters:
1818
count: 1
1919
path: src/Analyser/Generator/ExprHandler/AssignHandler.php
2020

21+
-
22+
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
23+
identifier: phpstanApi.instanceofType
24+
count: 2
25+
path: src/Analyser/Generator/ExprHandler/EqualHandler.php
26+
27+
-
28+
rawMessage: 'Method PHPStan\Analyser\Generator\ExprHandler\EqualHandler::resolveEqualSpecifiedTypes() should return array{PHPStan\Analyser\SpecifiedTypes, PHPStan\Analyser\SpecifiedTypes} but returns PHPStan\Analyser\SpecifiedTypes.'
29+
identifier: return.type
30+
count: 1
31+
path: src/Analyser/Generator/ExprHandler/EqualHandler.php
32+
2133
-
2234
rawMessage: Casting to string something that's already string.
2335
identifier: cast.useless
@@ -36,12 +48,36 @@ parameters:
3648
count: 3
3749
path: src/Analyser/Generator/GeneratorScope.php
3850

51+
-
52+
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
53+
identifier: phpstanApi.instanceofType
54+
count: 2
55+
path: src/Analyser/Generator/SpecifiedTypesHelper.php
56+
3957
-
4058
rawMessage: Cannot assign offset 'realCount' to array<mixed>|string.
4159
identifier: offsetAssign.dimType
4260
count: 1
4361
path: src/Analyser/Ignore/IgnoredErrorHelperResult.php
4462

63+
-
64+
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
65+
identifier: phpstanApi.instanceofType
66+
count: 2
67+
path: src/Analyser/LegacyTypeSpecifier.php
68+
69+
-
70+
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
71+
identifier: phpstanApi.instanceofType
72+
count: 5
73+
path: src/Analyser/LegacyTypeSpecifier.php
74+
75+
-
76+
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.'
77+
identifier: phpstanApi.instanceofType
78+
count: 4
79+
path: src/Analyser/LegacyTypeSpecifier.php
80+
4581
-
4682
rawMessage: Casting to string something that's already string.
4783
identifier: cast.useless
@@ -96,24 +132,6 @@ parameters:
96132
count: 1
97133
path: src/Analyser/RuleErrorTransformer.php
98134

99-
-
100-
rawMessage: 'Doing instanceof PHPStan\Type\ConstantScalarType is error-prone and deprecated. Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() instead.'
101-
identifier: phpstanApi.instanceofType
102-
count: 2
103-
path: src/Analyser/LegacyTypeSpecifier.php
104-
105-
-
106-
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantBooleanType is error-prone and deprecated. Use Type::isTrue() or Type::isFalse() instead.'
107-
identifier: phpstanApi.instanceofType
108-
count: 5
109-
path: src/Analyser/LegacyTypeSpecifier.php
110-
111-
-
112-
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.'
113-
identifier: phpstanApi.instanceofType
114-
count: 4
115-
path: src/Analyser/LegacyTypeSpecifier.php
116-
117135
-
118136
rawMessage: 'Template type TNodeType is declared as covariant, but occurs in contravariant position in parameter node of method PHPStan\Collectors\Collector::processNode().'
119137
identifier: generics.variance

0 commit comments

Comments
 (0)