[DependencyInjection][PhpDumper] Dump root namespace array_key_exists
This commit is contained in:
parent
aa9ccf8825
commit
4f642ad624
@ -1391,7 +1391,7 @@ EOF;
|
||||
return $this->buildParameters[$name];
|
||||
}
|
||||
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -1407,7 +1407,7 @@ EOF;
|
||||
return true;
|
||||
}
|
||||
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -61,7 +61,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -73,7 +73,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -61,7 +61,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -73,7 +73,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -76,7 +76,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -88,7 +88,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -72,7 +72,7 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -84,7 +84,7 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -466,7 +466,7 @@ class ProjectServiceContainer extends Container
|
||||
return $this->buildParameters[$name];
|
||||
}
|
||||
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -482,7 +482,7 @@ class ProjectServiceContainer extends Container
|
||||
return true;
|
||||
}
|
||||
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -411,7 +411,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -423,7 +423,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -464,7 +464,7 @@ class ProjectServiceContainer extends Container
|
||||
return $this->buildParameters[$name];
|
||||
}
|
||||
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -480,7 +480,7 @@ class ProjectServiceContainer extends Container
|
||||
return true;
|
||||
}
|
||||
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -100,7 +100,7 @@ class ProjectServiceContainer extends Container
|
||||
return $this->buildParameters[$name];
|
||||
}
|
||||
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -116,7 +116,7 @@ class ProjectServiceContainer extends Container
|
||||
return true;
|
||||
}
|
||||
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -65,7 +65,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -77,7 +77,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_CsvParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_CsvParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_DefaultParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_DefaultParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -74,7 +74,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -86,7 +86,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -411,7 +411,7 @@ class Symfony_DI_PhpDumper_Errored_Definition extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -423,7 +423,7 @@ class Symfony_DI_PhpDumper_Errored_Definition extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -94,7 +94,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -106,7 +106,7 @@ class ProjectServiceContainer extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_JsonParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_JsonParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_QueryStringParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_QueryStringParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -79,7 +79,7 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -91,7 +91,7 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -83,7 +83,7 @@ class Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -95,7 +95,7 @@ class Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
@ -48,7 +48,7 @@ class Symfony_DI_PhpDumper_Test_UrlParameters extends Container
|
||||
|
||||
public function getParameter(string $name)
|
||||
{
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
|
||||
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
|
||||
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
|
||||
}
|
||||
if (isset($this->loadedDynamicParameters[$name])) {
|
||||
@ -60,7 +60,7 @@ class Symfony_DI_PhpDumper_Test_UrlParameters extends Container
|
||||
|
||||
public function hasParameter(string $name): bool
|
||||
{
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
|
||||
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
|
||||
}
|
||||
|
||||
public function setParameter(string $name, $value): void
|
||||
|
Reference in New Issue
Block a user