[DI] CS fix

This commit is contained in:
Nicolas Grekas 2021-07-03 21:19:39 +02:00
parent e93f8c0ad3
commit 46309e5814

View File

@ -404,9 +404,7 @@ class Container implements ResettableContainerInterface
$this->set($id, new ServiceLocator([])); $this->set($id, new ServiceLocator([]));
} }
if (!$this->getEnv) { if (!$this->getEnv) {
$this->getEnv = new \ReflectionMethod($this, __FUNCTION__); $this->getEnv = \Closure::fromCallable([$this, 'getEnv']);
$this->getEnv->setAccessible(true);
$this->getEnv = $this->getEnv->getClosure($this);
} }
$processors = $this->get($id); $processors = $this->get($id);