We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3711a2 commit edfb365Copy full SHA for edfb365
website/src/developing-extensions/testing.md
@@ -78,10 +78,10 @@ class MyContainerDynamicReturnTypeExtensionTest extends TypeInferenceTestCase
78
/**
79
* @return iterable<mixed>
80
*/
81
- public function dataFileAsserts(): iterable
+ public static function dataFileAsserts(): iterable
82
{
83
// path to a file with actual asserts of expected types:
84
- yield from $this->gatherAssertTypes(__DIR__ . '/data/my-container-types.php');
+ yield from self::gatherAssertTypes(__DIR__ . '/data/my-container-types.php');
85
}
86
87
0 commit comments