Skip to content

Commit

Permalink
Merge pull request #6586 from yesdevnull/patch-3
Browse files Browse the repository at this point in the history
Set event subscriber priority for failure events
  • Loading branch information
Naktibalda committed Oct 21, 2022
2 parents b9a12f8 + e4c9fe6 commit 700288e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Codeception/Subscriber/FailFast.php
Expand Up @@ -14,11 +14,11 @@ class FailFast implements EventSubscriberInterface
use Shared\StaticEventsTrait;

/**
* @var array<string, string>
* @var array<string, array<string|int>>
*/
protected static array $events = [
Events::TEST_FAIL => 'stopOnFail',
Events::TEST_ERROR => 'stopOnFail',
Events::TEST_FAIL => ['stopOnFail', 128],
Events::TEST_ERROR => ['stopOnFail', 128],
];

private int $failureCount = 0;
Expand Down

0 comments on commit 700288e

Please sign in to comment.