Skip to content

Commit

Permalink
Adjusted annotations so psalm/plugin-phpunit understands data provi…
Browse files Browse the repository at this point in the history
…der usages too
  • Loading branch information
Ocramius committed Jan 27, 2025
1 parent 6f3f149 commit 90e722e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ final class CliUtilityTest extends TestCase
* @param non-empty-string|null $expectedArgumentValue
* @param list<non-empty-string> $arguments
* @param non-empty-string $argument
*
* @dataProvider provideExtractionData
*/
#[DataProvider('provideExtractionData')]
public function testExtractArgument(
Expand Down Expand Up @@ -128,6 +130,8 @@ public static function provideExtractionData(): array
/**
* @param list<non-empty-string> $arguments
* @param non-empty-string $argument
*
* @dataProvider provideExtractionMissingValueData
*/
#[DataProvider('provideExtractionMissingValueData')]
public function testExtractArgumentThrowsForMissingValue(
Expand Down

0 comments on commit 90e722e

Please sign in to comment.