diff --git a/src/Container.php b/src/Container.php
index <HASH>..<HASH> 100644
--- a/src/Container.php
+++ b/src/Container.php
@@ -152,7 +152,7 @@ class Container implements ContainerInterface
     {
         if (!isset($this->definitions[$id])) {
             if (isset($this->rootContainer)) {
-                if ($this->rootContainer instanceof static) {
+                if ($this->rootContainer instanceof self) {
                     return $this->rootContainer->getWithParams($id, $params);
                 } else {
                     return $this->rootContainer->get($id);
Fixed mistake: `self` is ok this case too