Skip to content

Commit 41e805b

Browse files
committed
Adapt to PHPStan 2.3
1 parent 870d30a commit 41e805b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/NodeVisitor/UnsetOnSuperglobalsDimFetchVisitor.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function enterNode(Node $node)
3030
return null;
3131
}
3232

33-
foreach ($node->vars as $i => $var) {
33+
foreach ($node->vars as $var) {
3434
if (! $var instanceof Node\Expr\ArrayDimFetch) {
3535
continue;
3636
}

‎tests/Fixtures/ReflectionHelperMethodInvokerTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testClassStringAsObjectType(): void
8383
$this->getPrivateMethodInvoker($object, 'isStaticMethodSupported'),
8484
);
8585
assertType(
86-
'Closure(PHPStan\Reflection\MethodReflection, PhpParser\Node\Expr\StaticCall, PHPStan\Analyser\Scope): never',
86+
'Closure(PHPStan\Reflection\MethodReflection, PhpParser\Node\Expr\StaticCall, PHPStan\Analyser\DependencyTracker&PHPStan\Analyser\Scope): never',
8787
$this->getPrivateMethodInvoker($object, 'getTypeFromStaticMethodCall'),
8888
);
8989
}

‎tests/Fixtures/ReflectionHelperStaticMethodInvokerTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testClassStringAsObjectType(): void
8383
self::getPrivateMethodInvoker($object, 'isStaticMethodSupported'),
8484
);
8585
assertType(
86-
'Closure(PHPStan\Reflection\MethodReflection, PhpParser\Node\Expr\StaticCall, PHPStan\Analyser\Scope): never',
86+
'Closure(PHPStan\Reflection\MethodReflection, PhpParser\Node\Expr\StaticCall, PHPStan\Analyser\DependencyTracker&PHPStan\Analyser\Scope): never',
8787
self::getPrivateMethodInvoker($object, 'getTypeFromStaticMethodCall'),
8888
);
8989
}

0 commit comments

Comments
 (0)