Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 77a68c4

Browse files
Fixed build
1 parent f34249c commit 77a68c4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎src/Rules/Deprecations/AccessDeprecatedStaticPropertyRule.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function processNode(Node $node, Scope $scope): array
5858
$scope,
5959
$node->class,
6060
'', // We don't care about the error message
61-
function (Type $type) use ($propertyName) {
61+
function (Type $type) use ($propertyName): bool {
6262
return $type->canAccessProperties()->yes() && $type->hasProperty($propertyName);
6363
}
6464
);

‎src/Rules/Deprecations/CallToDeprecatedStaticMethodRule.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function processNode(Node $node, Scope $scope): array
5858
$scope,
5959
$node->class,
6060
'', // We don't care about the error message
61-
function (Type $type) use ($methodName) {
61+
function (Type $type) use ($methodName): bool {
6262
return $type->canCallMethods()->yes() && $type->hasMethod($methodName);
6363
}
6464
);

‎src/Rules/Deprecations/FetchingClassConstOfDeprecatedClassRule.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function processNode(Node $node, Scope $scope): array
5858
$scope,
5959
$node->class,
6060
'', // We don't care about the error message
61-
function (Type $type) use ($constantName) {
61+
function (Type $type) use ($constantName): bool {
6262
return $type->canAccessConstants()->yes() && $type->hasConstant($constantName);
6363
}
6464
);

‎src/Rules/Deprecations/InstantiationOfDeprecatedClassRule.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function processNode(Node $node, Scope $scope): array
5757
$scope,
5858
$node->class,
5959
'', // We don't care about the error message
60-
function () {
60+
function (): bool {
6161
return true;
6262
}
6363
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /