|
4 | 4 |
|
5 | 5 | use PhpParser\Node; |
6 | 6 | use PhpParser\Node\Attribute; |
| 7 | +use PHPStan\Analyser\NodeCallbackInvoker; |
7 | 8 | use PHPStan\Analyser\Scope; |
8 | 9 | use PHPStan\DependencyInjection\AutowiredParameter; |
9 | 10 | use PHPStan\DependencyInjection\RegisteredRule; |
@@ -48,7 +49,7 @@ public function getNodeType(): string |
48 | 49 | return InClassMethodNode::class; |
49 | 50 | } |
50 | 51 |
|
51 | | - public function processNode(Node $node, Scope $scope): array |
| 52 | + public function processNode(Node $node, Scope&NodeCallbackInvoker $scope): array |
52 | 53 | { |
53 | 54 | $method = $node->getMethodReflection(); |
54 | 55 | $prototypeData = $this->methodPrototypeFinder->findPrototype($node->getClassReflection(), $method->getName()); |
@@ -323,7 +324,7 @@ private function filterOverrideAttribute(array $attrGroups): array |
323 | 324 | private function addErrors( |
324 | 325 | array $errors, |
325 | 326 | InClassMethodNode $classMethod, |
326 | | - Scope $scope, |
| 327 | + Scope&NodeCallbackInvoker $scope, |
327 | 328 | ): array |
328 | 329 | { |
329 | 330 | if (count($errors) > 0) { |
|
0 commit comments