Skip to content

Commit cdeb30a

Browse files
Merge branch '5.3' into 5.4
* 5.3: CS fix Missing translations from traits 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 [Serializer] Need to clear cache when updating Annotation Groups on Entities Add missing translations for Japanese. Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)" Fix test [Security] Don't skip UserPasswordValidatorTest [DI] CS fix [Console] fix handling positional arguments [Validator] add translation for Vietnamese Add Bulgarian translation for the validator fix backport [Console] fix type annotations on InputInterface
2 parents e8d9c35 + 961fe8b commit cdeb30a

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)