[DI] CS fix

This commit is contained in:
Nicolas Grekas 2021-07-03 21:19:39 +02:00
parent e93f8c0ad3
commit 46309e5814
1 changed files with 1 additions and 3 deletions

View File

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