Skip to content

Commit 961fe8b

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: [Security] Don't skip UserPasswordValidatorTest [DI] CS fix [Console] fix handling positional arguments [Validator] add translation for Vietnamese Add Bulgarian translation for the validator [Console] fix type annotations on InputInterface
2 parents 4fcfbd5 + dd273bb commit 961fe8b

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
@@ -378,9 +378,7 @@ protected function getEnv(string $name)
378378
$this->set($id, new ServiceLocator([]));
379379
}
380380
if (!$this->getEnv) {
381-
$this->getEnv = new \ReflectionMethod($this, __FUNCTION__);
382-
$this->getEnv->setAccessible(true);
383-
$this->getEnv = $this->getEnv->getClosure($this);
381+
$this->getEnv = \Closure::fromCallable([$this, 'getEnv']);
384382
}
385383
$processors = $this->get($id);
386384

0 commit comments

Comments
 (0)