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,

0 commit comments

Comments
 (0)