mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
refacto(phpstan-to-8): few adjustments
This commit is contained in:
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user