fix: removes unused param

This commit is contained in:
Nuno Maduro
2023-02-14 08:56:18 +00:00
parent a61db76c24
commit 9be89c4042
2 changed files with 1 additions and 2 deletions

View File

@ -162,7 +162,6 @@ final class TestCaseFactory
$methodsCode = implode('', array_map(
fn (TestCaseMethodFactory $methodFactory): string => $methodFactory->buildForEvaluation(
$classFQN,
self::ANNOTATIONS,
$methodAvailableAttributes
),

View File

@ -115,7 +115,7 @@ final class TestCaseMethodFactory
* @param array<int, class-string<AddsAnnotations>> $annotationsToUse
* @param array<int, class-string<\Pest\Factories\Attributes\Attribute>> $attributesToUse
*/
public function buildForEvaluation(string $classFQN, array $annotationsToUse, array $attributesToUse): string
public function buildForEvaluation(array $annotationsToUse, array $attributesToUse): string
{
if ($this->description === null) {
throw ShouldNotHappen::fromMessage('The test description may not be empty.');