refacto(phpstan-to-8): few adjustments

This commit is contained in:
Nuno Maduro
2021-11-18 23:39:37 +00:00
parent 7ea6d8a35d
commit 94585789dc
18 changed files with 107 additions and 94 deletions

View File

@ -14,11 +14,11 @@ final class Groups
/**
* Adds annotations regarding the "groups" feature.
*
* @param array<string> $annotations
* @param array<int, string> $annotations
*
* @return array<string>
* @return array<int, string>
*/
public function add(TestCaseMethodFactory $method, array $annotations): array
public function __invoke(TestCaseMethodFactory $method, array $annotations): array
{
foreach ($method->groups as $group) {
$annotations[] = "@group $group";