Skip to content

Commit dd273bb

Browse files
[DI] CS fix
1 parent ba855bb commit dd273bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Container.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ protected function getEnv($name)
404404
$this->set($id, new ServiceLocator([]));
405405
}
406406
if (!$this->getEnv) {
407-
$this->getEnv = new \ReflectionMethod($this, __FUNCTION__);
408-
$this->getEnv->setAccessible(true);
409-
$this->getEnv = $this->getEnv->getClosure($this);
407+
$this->getEnv = \Closure::fromCallable([$this, 'getEnv']);
410408
}
411409
$processors = $this->get($id);
412410

0 commit comments

Comments
 (0)