Skip to content

Conversation

eldering
Copy link
Member

Instead of manually adding various verdicts to the list in different places. This is not completely equivalent to before, but the changes should be fine. The original behaviour of calling getVerdicts without arguments is unchanged and getVerdicts(mergeExternal: true) maps to getVerdicts(['final', 'external']).

Instead of manually adding various verdicts to the list
in different places. This is not completely equivalent to
before, but the changes should be fine. The original
behaviour of calling `getVerdicts` without arguments is
unchanged and `getVerdicts(mergeExternal: true)` maps to
`getVerdicts(['final', 'external'])`.
* @return array<string, string>
*/
public function getVerdicts(bool $mergeExternal = false): array
public function getVerdicts(array $groups = ['final']): array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we create a (string backed?) enum for the groups, we can change it here.

Then we can add

/**
 * @param VerdictGroup[] $groups
 */

@eldering eldering added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit 754779b Nov 25, 2024
34 checks passed
@eldering eldering deleted the group-verdicts branch November 25, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants