Skip to content

Commit

Permalink
qa: allow error_levels notation which is compatible with named argu…
Browse files Browse the repository at this point in the history
…ments

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Apr 3, 2023
1 parent ac51b9a commit 5b61418
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tests/Traits/InvalidCodeAnalysisTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,26 @@
use const PHP_OS;
use const PHP_VERSION;

/**
* @psalm-type DeprecatedDataProviderArrayNotation = array{
* code: string,
* error_message: string,
* ignored_issues?: list<string>,
* php_version?: string
* }
* @psalm-type NamedArgumentsDataProviderArrayNotation = array{
* code: string,
* error_message: string,
* error_levels?: list<string>,
* php_version?: string
* }
*/
trait InvalidCodeAnalysisTestTrait
{
/**
* @return iterable<
* string,
* array{
* code: string,
* error_message: string,
* ignored_issues?: list<string>,
* php_version?: string,
* }
* DeprecatedDataProviderArrayNotation|NamedArgumentsDataProviderArrayNotation
* >
*/
abstract public function providerInvalidCodeParse(): iterable;
Expand Down

0 comments on commit 5b61418

Please sign in to comment.