diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index a1ff1cd6..371c8cd2 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -138,7 +138,7 @@ final class TestCaseFactory $hasPrintableTestCaseClassFQN = sprintf('\%s', HasPrintableTestCaseName::class); $traitsCode = sprintf('use %s;', implode(', ', array_map( - static fn ($trait): string => sprintf('\%s', $trait), $this->traits)) + static fn ($trait): string => sprintf('\%s', $trait), $this->traits)) ); $partsFQN = explode('\\', $classFQN); diff --git a/src/Plugins/Version.php b/src/Plugins/Version.php index 5452237a..e70e22b5 100644 --- a/src/Plugins/Version.php +++ b/src/Plugins/Version.php @@ -5,7 +5,9 @@ declare(strict_types=1); namespace Pest\Plugins; use Pest\Contracts\Plugins\HandlesArguments; + use function Pest\version; + use Symfony\Component\Console\Output\OutputInterface; /**