From 1c7c9754fd87cc60d0f75cc054a8d915e27bb8fd Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Sat, 2 May 2026 17:07:08 +0100 Subject: [PATCH] wip --- src/Plugins/Tia/Bootstrapper.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Plugins/Tia/Bootstrapper.php b/src/Plugins/Tia/Bootstrapper.php index 2c83eb13..b26ecb43 100644 --- a/src/Plugins/Tia/Bootstrapper.php +++ b/src/Plugins/Tia/Bootstrapper.php @@ -17,18 +17,12 @@ final readonly class Bootstrapper implements BootstrapperContract public function __construct(private Container $container) {} public function boot(): void - { - $this->container->add(State::class, new FileState($this->tempDir())); - } - - /** - * across worktrees of the same repo. See {@see Storage} for the key - */ - private function tempDir(): string { $testSuite = $this->container->get(TestSuite::class); assert($testSuite instanceof TestSuite); - return Storage::tempDir($testSuite->rootPath); + $tempDir = Storage::tempDir($testSuite->rootPath); + + $this->container->add(State::class, new FileState($tempDir)); } }