Skip to content

Commit 85ffd33

Browse files
Merge branch '4.4' into 5.2
* 4.4: Fix SkippedTestSuite [Console] Fix type annotation on InputInterface::hasArgument() Revert "minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)" [EventDispatcher] Correct the called event listener method case Add missing translations for Japanese. Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)" [Security] Don't skip UserPasswordValidatorTest [DI] CS fix [Console] fix handling positional arguments [Validator] add translation for Vietnamese Add Bulgarian translation for the validator
2 parents daa3604 + dd273bb commit 85ffd33

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)