Skip to content

Commit 1f4062f

Browse files
committed
[BCB] Some constructor parameters are now required
1 parent 6568103 commit 1f4062f

File tree

51 files changed

+66
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+66
-59
lines changed

src/Command/ErrorFormatter/TableErrorFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TableErrorFormatter implements ErrorFormatter
1919
public function __construct(
2020
RelativePathHelper $relativePathHelper,
2121
bool $showTipsOfTheDay,
22-
?string $editorUrl = null
22+
?string $editorUrl
2323
)
2424
{
2525
$this->relativePathHelper = $relativePathHelper;

src/Reflection/Php/PhpFunctionFromParserNodeReflection.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public function __construct(
7171
array $phpDocParameterTypes,
7272
array $realParameterDefaultValues,
7373
Type $realReturnType,
74-
?Type $phpDocReturnType = null,
75-
?Type $throwType = null,
76-
?string $deprecatedDescription = null,
77-
bool $isDeprecated = false,
78-
bool $isInternal = false,
79-
bool $isFinal = false,
80-
?bool $isPure = null
74+
?Type $phpDocReturnType,
75+
?Type $throwType,
76+
?string $deprecatedDescription,
77+
bool $isDeprecated,
78+
bool $isInternal,
79+
bool $isFinal,
80+
?bool $isPure
8181
)
8282
{
8383
$this->functionLike = $functionLike;

src/Reflection/Php/PhpFunctionReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(
8686
bool $isInternal,
8787
bool $isFinal,
8888
?string $filename,
89-
?bool $isPure = null
89+
?bool $isPure
9090
)
9191
{
9292
$this->reflection = $reflection;

src/Reflection/Php/PhpMethodFromParserNodeReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
bool $isDeprecated,
5252
bool $isInternal,
5353
bool $isFinal,
54-
?bool $isPure = null
54+
?bool $isPure
5555
)
5656
{
5757
$name = strtolower($classMethod->name->name);

src/Reflection/Php/PhpMethodReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __construct(
112112
bool $isInternal,
113113
bool $isFinal,
114114
?string $stubPhpDocString,
115-
?bool $isPure = null
115+
?bool $isPure
116116
)
117117
{
118118
$this->declaringClass = $declaringClass;

src/Rules/ClassCaseSensitivityCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ClassCaseSensitivityCheck
1212

1313
private bool $checkInternalClassCaseSensitivity;
1414

15-
public function __construct(ReflectionProvider $reflectionProvider, bool $checkInternalClassCaseSensitivity = false)
15+
public function __construct(ReflectionProvider $reflectionProvider, bool $checkInternalClassCaseSensitivity)
1616
{
1717
$this->reflectionProvider = $reflectionProvider;
1818
$this->checkInternalClassCaseSensitivity = $checkInternalClassCaseSensitivity;

src/Rules/Generics/GenericAncestorsCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
GenericObjectTypeCheck $genericObjectTypeCheck,
3333
VarianceCheck $varianceCheck,
3434
bool $checkGenericClassInNonGenericObjectType,
35-
array $skipCheckGenericClasses = []
35+
array $skipCheckGenericClasses
3636
)
3737
{
3838
$this->reflectionProvider = $reflectionProvider;

src/Rules/MissingTypehintCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
bool $checkMissingIterableValueType,
4949
bool $checkGenericClassInNonGenericObjectType,
5050
bool $checkMissingCallableSignature,
51-
array $skipCheckGenericClasses = []
51+
array $skipCheckGenericClasses
5252
)
5353
{
5454
$this->reflectionProvider = $reflectionProvider;

src/Rules/RuleLevelHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
bool $checkNullables,
4141
bool $checkThisOnly,
4242
bool $checkUnionTypes,
43-
bool $checkExplicitMixed = false
43+
bool $checkExplicitMixed
4444
)
4545
{
4646
$this->reflectionProvider = $reflectionProvider;

tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function runPath(string $path, int $expectedStatusCode): string
5858
$memoryLimitFile = self::getContainer()->getParameter('memoryLimitFile');
5959

6060
$relativePathHelper = new FuzzyRelativePathHelper(new NullRelativePathHelper(), __DIR__, [], DIRECTORY_SEPARATOR);
61-
$errorFormatter = new TableErrorFormatter($relativePathHelper, false);
61+
$errorFormatter = new TableErrorFormatter($relativePathHelper, false, null);
6262
$analysisResult = $analyserApplication->analyse(
6363
[$path],
6464
true,

tests/PHPStan/Command/ErrorFormatter/GithubErrorFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testFormatErrors(
165165
$relativePathHelper = new FuzzyRelativePathHelper(new NullRelativePathHelper(), self::DIRECTORY_PATH, [], '/');
166166
$formatter = new GithubErrorFormatter(
167167
$relativePathHelper,
168-
new TableErrorFormatter($relativePathHelper, false)
168+
new TableErrorFormatter($relativePathHelper, false, null)
169169
);
170170

171171
$this->assertSame($exitCode, $formatter->formatErrors(

tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function testFormatErrors(
150150
string $expected
151151
): void
152152
{
153-
$formatter = new TableErrorFormatter(new FuzzyRelativePathHelper(new NullRelativePathHelper(), self::DIRECTORY_PATH, [], '/'), false);
153+
$formatter = new TableErrorFormatter(new FuzzyRelativePathHelper(new NullRelativePathHelper(), self::DIRECTORY_PATH, [], '/'), false, null);
154154

155155
$this->assertSame($exitCode, $formatter->formatErrors(
156156
$this->getAnalysisResult($numFileErrors, $numGenericErrors),

tests/PHPStan/Rules/Classes/ClassAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Classes/ClassConstantAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Classes/ClassConstantRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ClassConstantRuleTest extends \PHPStan\Testing\RuleTestCase
1919
protected function getRule(): Rule
2020
{
2121
$broker = $this->createReflectionProvider();
22-
return new ClassConstantRule($broker, new RuleLevelHelper($broker, true, false, true, false), new ClassCaseSensitivityCheck($broker), new PhpVersion($this->phpVersion));
22+
return new ClassConstantRule($broker, new RuleLevelHelper($broker, true, false, true, false), new ClassCaseSensitivityCheck($broker, true), new PhpVersion($this->phpVersion));
2323
}
2424

2525
public function testClassConstant(): void

tests/PHPStan/Rules/Classes/ExistingClassInClassExtendsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function getRule(): Rule
1515
{
1616
$broker = $this->createReflectionProvider();
1717
return new ExistingClassInClassExtendsRule(
18-
new ClassCaseSensitivityCheck($broker),
18+
new ClassCaseSensitivityCheck($broker, true),
1919
$broker
2020
);
2121
}

tests/PHPStan/Rules/Classes/ExistingClassInInstanceOfRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function getRule(): Rule
1616
$broker = $this->createReflectionProvider();
1717
return new ExistingClassInInstanceOfRule(
1818
$broker,
19-
new ClassCaseSensitivityCheck($broker),
19+
new ClassCaseSensitivityCheck($broker, true),
2020
true
2121
);
2222
}

tests/PHPStan/Rules/Classes/ExistingClassInTraitUseRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function getRule(): Rule
1515
{
1616
$broker = $this->createReflectionProvider();
1717
return new ExistingClassInTraitUseRule(
18-
new ClassCaseSensitivityCheck($broker),
18+
new ClassCaseSensitivityCheck($broker, true),
1919
$broker
2020
);
2121
}

tests/PHPStan/Rules/Classes/ExistingClassesInClassImplementsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function getRule(): Rule
1515
{
1616
$broker = $this->createReflectionProvider();
1717
return new ExistingClassesInClassImplementsRule(
18-
new ClassCaseSensitivityCheck($broker),
18+
new ClassCaseSensitivityCheck($broker, true),
1919
$broker
2020
);
2121
}

tests/PHPStan/Rules/Classes/ExistingClassesInInterfaceExtendsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function getRule(): Rule
1515
{
1616
$broker = $this->createReflectionProvider();
1717
return new ExistingClassesInInterfaceExtendsRule(
18-
new ClassCaseSensitivityCheck($broker),
18+
new ClassCaseSensitivityCheck($broker, true),
1919
$broker
2020
);
2121
}

tests/PHPStan/Rules/Classes/InstantiationRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function getRule(): \PHPStan\Rules\Rule
2121
return new InstantiationRule(
2222
$broker,
2323
new FunctionCallParametersCheck(new RuleLevelHelper($broker, true, false, true, false), new NullsafeCheck(), new PhpVersion(80000), new UnresolvableTypeHelper(), true, true, true, true),
24-
new ClassCaseSensitivityCheck($broker)
24+
new ClassCaseSensitivityCheck($broker, true)
2525
);
2626
}
2727

tests/PHPStan/Rules/Classes/MixinRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ protected function getRule(): Rule
2323
return new MixinRule(
2424
self::getContainer()->getByType(FileTypeMapper::class),
2525
$reflectionProvider,
26-
new ClassCaseSensitivityCheck($reflectionProvider),
26+
new ClassCaseSensitivityCheck($reflectionProvider, true),
2727
new GenericObjectTypeCheck(),
28-
new MissingTypehintCheck($reflectionProvider, true, true, true),
28+
new MissingTypehintCheck($reflectionProvider, true, true, true, []),
2929
new UnresolvableTypeHelper(),
3030
true
3131
);

tests/PHPStan/Rules/Constants/MissingClassConstantTypehintRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MissingClassConstantTypehintRuleTest extends RuleTestCase
1414
protected function getRule(): \PHPStan\Rules\Rule
1515
{
1616
$reflectionProvider = $this->createReflectionProvider();
17-
return new MissingClassConstantTypehintRule(new MissingTypehintCheck($reflectionProvider, true, true, true));
17+
return new MissingClassConstantTypehintRule(new MissingTypehintCheck($reflectionProvider, true, true, true, []));
1818
}
1919

2020
public function testRule(): void

tests/PHPStan/Rules/Exceptions/CaughtExceptionExistenceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function getRule(): \PHPStan\Rules\Rule
1515
$broker = $this->createReflectionProvider();
1616
return new CaughtExceptionExistenceRule(
1717
$broker,
18-
new ClassCaseSensitivityCheck($broker),
18+
new ClassCaseSensitivityCheck($broker, true),
1919
true
2020
);
2121
}

tests/PHPStan/Rules/Functions/ArrowFunctionAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Functions/ClosureAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Functions/ExistingClassesInArrowFunctionTypehintsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ExistingClassesInArrowFunctionTypehintsRuleTest extends \PHPStan\Testing\R
1818
protected function getRule(): \PHPStan\Rules\Rule
1919
{
2020
$broker = $this->createReflectionProvider();
21-
return new ExistingClassesInArrowFunctionTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker), new PhpVersion($this->phpVersionId), true, false));
21+
return new ExistingClassesInArrowFunctionTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker, true), new PhpVersion($this->phpVersionId), true, false));
2222
}
2323

2424
public function testRule(): void

tests/PHPStan/Rules/Functions/ExistingClassesInClosureTypehintsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ExistingClassesInClosureTypehintsRuleTest extends \PHPStan\Testing\RuleTes
1818
protected function getRule(): \PHPStan\Rules\Rule
1919
{
2020
$broker = $this->createReflectionProvider();
21-
return new ExistingClassesInClosureTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker), new PhpVersion($this->phpVersionId), true, false));
21+
return new ExistingClassesInClosureTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker, true), new PhpVersion($this->phpVersionId), true, false));
2222
}
2323

2424
public function testExistingClassInTypehint(): void

tests/PHPStan/Rules/Functions/ExistingClassesInTypehintsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ExistingClassesInTypehintsRuleTest extends \PHPStan\Testing\RuleTestCase
1919
protected function getRule(): \PHPStan\Rules\Rule
2020
{
2121
$broker = $this->createReflectionProvider();
22-
return new ExistingClassesInTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker), new PhpVersion($this->phpVersionId), true, false));
22+
return new ExistingClassesInTypehintsRule(new FunctionDefinitionCheck($broker, new ClassCaseSensitivityCheck($broker, true), new PhpVersion($this->phpVersionId), true, false));
2323
}
2424

2525
public function testExistingClassInTypehint(): void

tests/PHPStan/Rules/Functions/FunctionAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Functions/MissingFunctionParameterTypehintRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MissingFunctionParameterTypehintRuleTest extends \PHPStan\Testing\RuleTest
1313
protected function getRule(): \PHPStan\Rules\Rule
1414
{
1515
$broker = $this->createReflectionProvider();
16-
return new MissingFunctionParameterTypehintRule(new MissingTypehintCheck($broker, true, true, true));
16+
return new MissingFunctionParameterTypehintRule(new MissingTypehintCheck($broker, true, true, true, []));
1717
}
1818

1919
public function testRule(): void

tests/PHPStan/Rules/Functions/MissingFunctionReturnTypehintRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MissingFunctionReturnTypehintRuleTest extends \PHPStan\Testing\RuleTestCas
1313
protected function getRule(): \PHPStan\Rules\Rule
1414
{
1515
$broker = $this->createReflectionProvider();
16-
return new MissingFunctionReturnTypehintRule(new MissingTypehintCheck($broker, true, true, true));
16+
return new MissingFunctionReturnTypehintRule(new MissingTypehintCheck($broker, true, true, true, []));
1717
}
1818

1919
public function testRule(): void

tests/PHPStan/Rules/Functions/ParamAttributesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function getRule(): Rule
2525
new AttributesCheck(
2626
$reflectionProvider,
2727
new FunctionCallParametersCheck(
28-
new RuleLevelHelper($reflectionProvider, true, false, true),
28+
new RuleLevelHelper($reflectionProvider, true, false, true, false),
2929
new NullsafeCheck(),
3030
new PhpVersion(80000),
3131
new UnresolvableTypeHelper(),

tests/PHPStan/Rules/Generics/ClassAncestorsRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ protected function getRule(): Rule
2020
$this->createReflectionProvider(),
2121
new GenericObjectTypeCheck(),
2222
new VarianceCheck(),
23-
true
23+
true,
24+
[]
2425
),
2526
new CrossCheckInterfacesHelper()
2627
);

tests/PHPStan/Rules/Generics/ClassTemplateTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getRule(): Rule
2020
return new ClassTemplateTypeRule(
2121
new TemplateTypeCheck(
2222
$broker,
23-
new ClassCaseSensitivityCheck($broker),
23+
new ClassCaseSensitivityCheck($broker, true),
2424
new GenericObjectTypeCheck(),
2525
$typeAliasResolver,
2626
true

tests/PHPStan/Rules/Generics/FunctionTemplateTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getRule(): Rule
2020

2121
return new FunctionTemplateTypeRule(
2222
self::getContainer()->getByType(FileTypeMapper::class),
23-
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker), new GenericObjectTypeCheck(), $typeAliasResolver, true)
23+
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker, true), new GenericObjectTypeCheck(), $typeAliasResolver, true)
2424
);
2525
}
2626

tests/PHPStan/Rules/Generics/InterfaceAncestorsRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ protected function getRule(): Rule
2020
$this->createReflectionProvider(),
2121
new GenericObjectTypeCheck(),
2222
new VarianceCheck(),
23-
true
23+
true,
24+
[]
2425
),
2526
new CrossCheckInterfacesHelper()
2627
);

tests/PHPStan/Rules/Generics/InterfaceTemplateTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getRule(): Rule
2020

2121
return new InterfaceTemplateTypeRule(
2222
self::getContainer()->getByType(FileTypeMapper::class),
23-
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker), new GenericObjectTypeCheck(), $typeAliasResolver, true)
23+
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker, true), new GenericObjectTypeCheck(), $typeAliasResolver, true)
2424
);
2525
}
2626

tests/PHPStan/Rules/Generics/MethodTemplateTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getRule(): Rule
2020

2121
return new MethodTemplateTypeRule(
2222
self::getContainer()->getByType(FileTypeMapper::class),
23-
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker), new GenericObjectTypeCheck(), $typeAliasResolver, true)
23+
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker, true), new GenericObjectTypeCheck(), $typeAliasResolver, true)
2424
);
2525
}
2626

tests/PHPStan/Rules/Generics/TraitTemplateTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getRule(): Rule
2020

2121
return new TraitTemplateTypeRule(
2222
self::getContainer()->getByType(FileTypeMapper::class),
23-
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker), new GenericObjectTypeCheck(), $typeAliasResolver, true)
23+
new TemplateTypeCheck($broker, new ClassCaseSensitivityCheck($broker, true), new GenericObjectTypeCheck(), $typeAliasResolver, true)
2424
);
2525
}
2626

tests/PHPStan/Rules/Generics/UsedTraitsRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ protected function getRule(): Rule
2020
$this->createReflectionProvider(),
2121
new GenericObjectTypeCheck(),
2222
new VarianceCheck(),
23-
true
23+
true,
24+
[]
2425
)
2526
);
2627
}

tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function getRule(): \PHPStan\Rules\Rule
2626
$broker,
2727
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), new PhpVersion(80000), new UnresolvableTypeHelper(), true, true, true, true),
2828
$ruleLevelHelper,
29-
new ClassCaseSensitivityCheck($broker),
29+
new ClassCaseSensitivityCheck($broker, true),
3030
true,
3131
true
3232
);

0 commit comments

Comments
 (0)