From 9be89c4042cb1b03cc5fdf45db01fa9a25b59804 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 14 Feb 2023 08:56:18 +0000 Subject: [PATCH] fix: removes unused param --- src/Factories/TestCaseFactory.php | 1 - src/Factories/TestCaseMethodFactory.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index cedce46f..9f3dc0ec 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -162,7 +162,6 @@ final class TestCaseFactory $methodsCode = implode('', array_map( fn (TestCaseMethodFactory $methodFactory): string => $methodFactory->buildForEvaluation( - $classFQN, self::ANNOTATIONS, $methodAvailableAttributes ), diff --git a/src/Factories/TestCaseMethodFactory.php b/src/Factories/TestCaseMethodFactory.php index ef46b841..f75dffa4 100644 --- a/src/Factories/TestCaseMethodFactory.php +++ b/src/Factories/TestCaseMethodFactory.php @@ -115,7 +115,7 @@ final class TestCaseMethodFactory * @param array> $annotationsToUse * @param array> $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.');