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 <[email protected]>
  • Loading branch information
boesing committed Apr 3, 2023
1 parent fae7ca5 commit 3f11335
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 3f11335

Please sign in to comment.