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.
2 parents 4fcfbd5 + dd273bb commit 961fe8bCopy full SHA for 961fe8b
Container.php
@@ -378,9 +378,7 @@ protected function getEnv(string $name)
378
$this->set($id, new ServiceLocator([]));
379
}
380
if (!$this->getEnv) {
381
- $this->getEnv = new \ReflectionMethod($this, __FUNCTION__);
382
- $this->getEnv->setAccessible(true);
383
- $this->getEnv = $this->getEnv->getClosure($this);
+ $this->getEnv = \Closure::fromCallable([$this, 'getEnv']);
384
385
$processors = $this->get($id);
386
0 commit comments