Skip to content

Commit 3811672

Browse files
committed
Auto-apply fixes for static data providers
1 parent 846959f commit 3811672

File tree

174 files changed

+351
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+351
-351
lines changed

tests/PHPStan/Analyser/AnalyserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function testIgnoreErrorMultiByPath(): void
152152
$this->assertNoErrors($result);
153153
}
154154

155-
public function dataIgnoreErrorByPathAndCount(): iterable
155+
public static function dataIgnoreErrorByPathAndCount(): iterable
156156
{
157157
yield [
158158
[
@@ -204,7 +204,7 @@ public function testIgnoreErrorByPathAndCount(array $ignoreErrors): void
204204
$this->assertNoErrors($result);
205205
}
206206

207-
public function dataTrueAndFalse(): array
207+
public static function dataTrueAndFalse(): array
208208
{
209209
return [
210210
[true],
@@ -422,7 +422,7 @@ public function testIgnoreErrorNotFoundInPathExplicitReportUnmatched(): void
422422
$this->assertSame('Ignored error pattern #Fail\.# in path ' . __DIR__ . '/data/not-existent-path.php was not matched in reported errors.', $result[0]);
423423
}
424424

425-
public function dataIgnoreErrorInTraitUsingClassFilePath(): array
425+
public static function dataIgnoreErrorInTraitUsingClassFilePath(): array
426426
{
427427
return [
428428
[

tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class ArgumentsNormalizerTest extends PHPStanTestCase
2323
{
2424

25-
public function dataReorderValid(): iterable
25+
public static function dataReorderValid(): iterable
2626
{
2727
yield [
2828
[
@@ -298,7 +298,7 @@ public function testReorderValid(
298298
}
299299
}
300300

301-
public function dataReorderInvalid(): iterable
301+
public static function dataReorderInvalid(): iterable
302302
{
303303
yield [
304304
[

tests/PHPStan/Analyser/AssertStubTest.php

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

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

tests/PHPStan/Analyser/Bug10922Test.php

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

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

tests/PHPStan/Analyser/Bug10980Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Bug10980Test extends TypeInferenceTestCase
88
{
99

10-
public function dataFileAsserts(): iterable
10+
public static function dataFileAsserts(): iterable
1111
{
1212
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-10980.php');
1313
}

tests/PHPStan/Analyser/Bug11009Test.php

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

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

tests/PHPStan/Analyser/Bug9307Test.php

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

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

tests/PHPStan/Analyser/ClassConstantStubFileTest.php

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

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

tests/PHPStan/Analyser/ConditionalReturnTypeFromMethodStubTest.php

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

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

tests/PHPStan/Analyser/DoNotPolluteScopeWithBlockTest.php

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

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

0 commit comments

Comments
 (0)