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 c8a1ae1

Browse files
Fix PHP 7.4 build
1 parent 223308f commit c8a1ae1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/Rules/Methods/OverridingMethodRule.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PhpParser\Node;
66
use PhpParser\Node\Attribute;
7+
use PHPStan\Analyser\NodeCallbackInvoker;
78
use PHPStan\Analyser\Scope;
89
use PHPStan\DependencyInjection\AutowiredParameter;
910
use PHPStan\DependencyInjection\RegisteredRule;
@@ -48,7 +49,7 @@ public function getNodeType(): string
4849
return InClassMethodNode::class;
4950
}
5051

51-
public function processNode(Node $node, Scope $scope): array
52+
public function processNode(Node $node, Scope&NodeCallbackInvoker $scope): array
5253
{
5354
$method = $node->getMethodReflection();
5455
$prototypeData = $this->methodPrototypeFinder->findPrototype($node->getClassReflection(), $method->getName());
@@ -323,7 +324,7 @@ private function filterOverrideAttribute(array $attrGroups): array
323324
private function addErrors(
324325
array $errors,
325326
InClassMethodNode $classMethod,
326-
Scope $scope,
327+
Scope&NodeCallbackInvoker $scope,
327328
): array
328329
{
329330
if (count($errors) > 0) {

0 commit comments

Comments
(0)

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