Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 342b6c1

Browse files
Data providers must be static
1 parent 846d161 commit 342b6c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎tests/Type/PHPUnit/AssertFunctionTypeSpecifyingExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class AssertFunctionTypeSpecifyingExtensionTest extends TypeInferenceTestCase
99
{
1010

1111
/** @return mixed[] */
12-
public function dataFileAsserts(): iterable
12+
public staticfunction dataFileAsserts(): iterable
1313
{
1414
if (function_exists('PHPUnit\\Framework\\assertInstanceOf')) {
15-
yield from $this->gatherAssertTypes(__DIR__ . '/data/assert-function.php');
15+
yield from self::gatherAssertTypes(__DIR__ . '/data/assert-function.php');
1616
}
1717

1818
if (function_exists('PHPUnit\\Framework\\assertObjectHasProperty')) {
19-
yield from $this->gatherAssertTypes(__DIR__ . '/data/assert-function-9.6.11.php');
19+
yield from self::gatherAssertTypes(__DIR__ . '/data/assert-function-9.6.11.php');
2020
}
2121

2222
return [];

‎tests/Type/PHPUnit/AssertMethodTypeSpecifyingExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class AssertMethodTypeSpecifyingExtensionTest extends TypeInferenceTestCase
88
{
99

1010
/** @return mixed[] */
11-
public function dataFileAsserts(): iterable
11+
public staticfunction dataFileAsserts(): iterable
1212
{
13-
yield from $this->gatherAssertTypes(__DIR__ . '/data/assert-method.php');
13+
yield from self::gatherAssertTypes(__DIR__ . '/data/assert-method.php');
1414
}
1515

1616
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /