mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: removes unused param
This commit is contained in:
@ -162,7 +162,6 @@ final class TestCaseFactory
|
|||||||
|
|
||||||
$methodsCode = implode('', array_map(
|
$methodsCode = implode('', array_map(
|
||||||
fn (TestCaseMethodFactory $methodFactory): string => $methodFactory->buildForEvaluation(
|
fn (TestCaseMethodFactory $methodFactory): string => $methodFactory->buildForEvaluation(
|
||||||
$classFQN,
|
|
||||||
self::ANNOTATIONS,
|
self::ANNOTATIONS,
|
||||||
$methodAvailableAttributes
|
$methodAvailableAttributes
|
||||||
),
|
),
|
||||||
|
|||||||
@ -115,7 +115,7 @@ final class TestCaseMethodFactory
|
|||||||
* @param array<int, class-string<AddsAnnotations>> $annotationsToUse
|
* @param array<int, class-string<AddsAnnotations>> $annotationsToUse
|
||||||
* @param array<int, class-string<\Pest\Factories\Attributes\Attribute>> $attributesToUse
|
* @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) {
|
if ($this->description === null) {
|
||||||
throw ShouldNotHappen::fromMessage('The test description may not be empty.');
|
throw ShouldNotHappen::fromMessage('The test description may not be empty.');
|
||||||
|
|||||||
Reference in New Issue
Block a user