fix phpstan types

This commit is contained in:
danilopolani
2022-03-09 11:48:35 +01:00
parent cda4665979
commit a3889110f1
2 changed files with 12 additions and 1 deletions

View File

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Pest\Factories\Attributes;
use Pest\Factories\TestCaseMethodFactory;
/**
* @internal
*/
@ -15,4 +17,14 @@ abstract class Attribute
* @var bool
*/
public const ABOVE_CLASS = false;
/**
* @param array<int, string> $attributes
*
* @return array<int, string>
*/
public function __invoke(TestCaseMethodFactory $method, array $attributes): array // @phpstan-ignore-line
{
return $attributes;
}
}

View File

@ -138,7 +138,6 @@ final class TestCaseMethodFactory
}
foreach ($attributesToUse as $attribute) {
/** @phpstan-ignore-next-line */
$attributes = (new $attribute())->__invoke($this, $attributes);
}