diff --git a/src/Generator.php b/src/Generator.php
index <HASH>..<HASH> 100644
--- a/src/Generator.php
+++ b/src/Generator.php
@@ -16,9 +16,9 @@ abstract class Generator
      */
     private $compiler;
 
-    public function __construct(?Compiler $compiler = null)
+    public function __construct()
     {
-        $this->compiler = $compiler ?? new Compiler();
+        $this->compiler = new Compiler();
     }
 
     /**
diff --git a/test/GeneratorTest.php b/test/GeneratorTest.php
index <HASH>..<HASH> 100644
--- a/test/GeneratorTest.php
+++ b/test/GeneratorTest.php
@@ -24,17 +24,11 @@ final class GeneratorTest extends TestCase
     private $generator;
 
     /**
-     * @var Compiler
-     */
-    private $compiler;
-
-    /**
      * @before
      */
     public function configureDependencies(): void
     {
-        $this->compiler  = new Compiler();
-        $this->generator = $this->getMockForAbstractClass(Generator::class, [$this->compiler]);
+        $this->generator = $this->getMockForAbstractClass(Generator::class);
     }
 
     /**
Always instantiate the container compiler

Since `Compiler` is a final class, not an extension point, and that we
don't need to reuse instances at all there's no need to allow injection
here.