Issue #3029991 by catch: [Symfony 4] Container tests failing due to invalid exception argument type

8.7.x
Lee Rowlands 2019-02-02 18:09:37 +10:00
parent 3148601bc0
commit 36c5538bb1
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class Container implements ContainerInterface, ResettableContainerInterface {
if (!$definition && $invalid_behavior === ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
if (!$id) {
throw new ServiceNotFoundException($id);
throw new ServiceNotFoundException('');
}
throw new ServiceNotFoundException($id, NULL, NULL, $this->getServiceAlternatives($id));
@ -368,7 +368,7 @@ class Container implements ContainerInterface, ResettableContainerInterface {
public function getParameter($name) {
if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
if (!$name) {
throw new ParameterNotFoundException($name);
throw new ParameterNotFoundException('');
}
throw new ParameterNotFoundException($name, NULL, NULL, NULL, $this->getParameterAlternatives($name));