Skip to content

Commit dee013b

Browse files
committed
Call gatherAssertTypes statically
1 parent 3811672 commit dee013b

27 files changed

+43
-43
lines changed

tests/PHPStan/Analyser/AssertStubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AssertStubTest extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/assert-stub.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/assert-stub.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/Bug10922Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Bug10922Test extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-10922.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-10922.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/Bug11009Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Bug11009Test extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-11009.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-11009.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/Bug9307Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Bug9307Test extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-9307.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-9307.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/ClassConstantStubFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ClassConstantStubFileTest extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/class-constant-stub-files.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/class-constant-stub-files.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/ConditionalReturnTypeFromMethodStubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ConditionalReturnTypeFromMethodStubTest extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/conditional-return-type-stub.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/conditional-return-type-stub.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/DoNotPolluteScopeWithBlockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DoNotPolluteScopeWithBlockTest extends TypeInferenceTestCase
99

1010
public static function dataFileAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/do-not-pollute-scope-with-block.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/do-not-pollute-scope-with-block.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/DoNotRememberPossiblyImpureFunctionValuesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DoNotRememberPossiblyImpureFunctionValuesTest extends TypeInferenceTestCas
99

1010
public static function dataAsserts(): iterable
1111
{
12-
yield from $this->gatherAssertTypes(__DIR__ . '/data/do-not-remember-possibly-impure-function-values.php');
12+
yield from self::gatherAssertTypes(__DIR__ . '/data/do-not-remember-possibly-impure-function-values.php');
1313
}
1414

1515
/**

tests/PHPStan/Analyser/DynamicMethodThrowTypeExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public static function dataFileAsserts(): iterable
1414
return [];
1515
}
1616

17-
yield from $this->gatherAssertTypes(__DIR__ . '/data/dynamic-method-throw-type-extension.php');
18-
yield from $this->gatherAssertTypes(__DIR__ . '/data/dynamic-method-throw-type-extension-named-args-fixture.php');
17+
yield from self::gatherAssertTypes(__DIR__ . '/data/dynamic-method-throw-type-extension.php');
18+
yield from self::gatherAssertTypes(__DIR__ . '/data/dynamic-method-throw-type-extension-named-args-fixture.php');
1919
}
2020

2121
/**

tests/PHPStan/Analyser/DynamicReturnTypeExtensionTypeInferenceTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ class DynamicReturnTypeExtensionTypeInferenceTest extends TypeInferenceTestCase
1010

1111
public static function dataAsserts(): iterable
1212
{
13-
yield from $this->gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-types.php');
13+
yield from self::gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-types.php');
1414

1515
if (PHP_VERSION_ID >= 80000) {
16-
yield from $this->gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-types-named-args.php');
16+
yield from self::gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-types-named-args.php');
1717
}
1818

19-
yield from $this->gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-compound-types.php');
20-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7344.php');
21-
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7391b.php');
19+
yield from self::gatherAssertTypes(__DIR__ . '/data/dynamic-method-return-compound-types.php');
20+
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-7344.php');
21+
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-7391b.php');
2222
}
2323

2424
/**

0 commit comments

Comments
 (0)