Skip to content

Commit ca3002a

Browse files
committed
More fixes
1 parent fd4d3d2 commit ca3002a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public function testClassMethodScope(): void
6363
});
6464
}
6565

66-
private function getFileScope(string $filename): Scope
66+
private static function getFileScope(string $filename): Scope
6767
{
6868
$testScope = null;
69-
$this->processFile($filename, static function (Node $node, Scope $scope) use (&$testScope): void {
69+
self::processFile($filename, static function (Node $node, Scope $scope) use (&$testScope): void {
7070
if (!($node instanceof Exit_)) {
7171
return;
7272
}
@@ -230,7 +230,7 @@ public function testUnionAndIntersection(
230230

231231
public static function dataAssignInIf(): array
232232
{
233-
$testScope = $this->getFileScope(__DIR__ . '/data/if.php');
233+
$testScope = self::getFileScope(__DIR__ . '/data/if.php');
234234

235235
return [
236236
[
@@ -760,7 +760,7 @@ public function testAssignInIf(
760760

761761
public static function dataConstantTypes(): array
762762
{
763-
$testScope = $this->getFileScope(__DIR__ . '/data/constantTypes.php');
763+
$testScope = self::getFileScope(__DIR__ . '/data/constantTypes.php');
764764

765765
return [
766766
[

0 commit comments

Comments
 (0)