We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba855bb commit dd273bbCopy full SHA for dd273bb
Container.php
@@ -404,9 +404,7 @@ protected function getEnv($name)
404
$this->set($id, new ServiceLocator([]));
405
}
406
if (!$this->getEnv) {
407
- $this->getEnv = new \ReflectionMethod($this, __FUNCTION__);
408
- $this->getEnv->setAccessible(true);
409
- $this->getEnv = $this->getEnv->getClosure($this);
+ $this->getEnv = \Closure::fromCallable([$this, 'getEnv']);
410
411
$processors = $this->get($id);
412
0 commit comments