Skip to content

Commit b9ab799

Browse files
committed
[DependencyInjection][PhpDumper] Dump root namespace array_key_exists
1 parent 93a06c0 commit b9ab799

22 files changed

+44
-44
lines changed

Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ public function getParameter(string $name)
13911391
return $this->buildParameters[$name];
13921392
}
13931393
1394-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
1394+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
13951395
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
13961396
}
13971397
if (isset($this->loadedDynamicParameters[$name])) {
@@ -1407,7 +1407,7 @@ public function hasParameter(string $name): bool
14071407
return true;
14081408
}
14091409
1410-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
1410+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
14111411
}
14121412
14131413
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services10.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function getTestService()
6161

6262
public function getParameter(string $name)
6363
{
64-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
64+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
6565
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
6666
}
6767
if (isset($this->loadedDynamicParameters[$name])) {
@@ -73,7 +73,7 @@ public function getParameter(string $name)
7373

7474
public function hasParameter(string $name): bool
7575
{
76-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
76+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
7777
}
7878

7979
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services12.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function getTestService()
6161

6262
public function getParameter(string $name)
6363
{
64-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
64+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
6565
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
6666
}
6767
if (isset($this->loadedDynamicParameters[$name])) {
@@ -73,7 +73,7 @@ public function getParameter(string $name)
7373

7474
public function hasParameter(string $name): bool
7575
{
76-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
76+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
7777
}
7878

7979
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services19.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function getServiceWithMethodCallAndFactoryService()
7676

7777
public function getParameter(string $name)
7878
{
79-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
79+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
8080
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
8181
}
8282
if (isset($this->loadedDynamicParameters[$name])) {
@@ -88,7 +88,7 @@ public function getParameter(string $name)
8888

8989
public function hasParameter(string $name): bool
9090
{
91-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
91+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
9292
}
9393

9494
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services26.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function getTestService()
7272

7373
public function getParameter(string $name)
7474
{
75-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
75+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
7676
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
7777
}
7878
if (isset($this->loadedDynamicParameters[$name])) {
@@ -84,7 +84,7 @@ public function getParameter(string $name)
8484

8585
public function hasParameter(string $name): bool
8686
{
87-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
87+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
8888
}
8989

9090
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services8.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getRemovedIds(): array
4848

4949
public function getParameter(string $name)
5050
{
51-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
51+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
5252
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
5353
}
5454
if (isset($this->loadedDynamicParameters[$name])) {
@@ -60,7 +60,7 @@ public function getParameter(string $name)
6060

6161
public function hasParameter(string $name): bool
6262
{
63-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
63+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
6464
}
6565

6666
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services9_as_files.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class ProjectServiceContainer extends Container
466466
return $this->buildParameters[$name];
467467
}
468468

469-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
469+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
470470
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
471471
}
472472
if (isset($this->loadedDynamicParameters[$name])) {
@@ -482,7 +482,7 @@ class ProjectServiceContainer extends Container
482482
return true;
483483
}
484484

485-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
485+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
486486
}
487487

488488
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services9_compiled.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ protected function getFactorySimpleService()
411411

412412
public function getParameter(string $name)
413413
{
414-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
414+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
415415
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
416416
}
417417
if (isset($this->loadedDynamicParameters[$name])) {
@@ -423,7 +423,7 @@ public function getParameter(string $name)
423423

424424
public function hasParameter(string $name): bool
425425
{
426-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
426+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
427427
}
428428

429429
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services9_inlined_factories.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class ProjectServiceContainer extends Container
464464
return $this->buildParameters[$name];
465465
}
466466

467-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
467+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
468468
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
469469
}
470470
if (isset($this->loadedDynamicParameters[$name])) {
@@ -480,7 +480,7 @@ class ProjectServiceContainer extends Container
480480
return true;
481481
}
482482

483-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
483+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
484484
}
485485

486486
public function setParameter(string $name, $value): void

Tests/Fixtures/php/services9_lazy_inlined_factories.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ProjectServiceContainer extends Container
100100
return $this->buildParameters[$name];
101101
}
102102

103-
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
103+
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters))) {
104104
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
105105
}
106106
if (isset($this->loadedDynamicParameters[$name])) {
@@ -116,7 +116,7 @@ class ProjectServiceContainer extends Container
116116
return true;
117117
}
118118

119-
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
119+
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || \array_key_exists($name, $this->parameters);
120120
}
121121

122122
public function setParameter(string $name, $value): void

0 commit comments

Comments
 (0)