Skip to content

Commit 3d4146f

Browse files
Fix merge
1 parent 1b8ceb1 commit 3d4146f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ private function hasReference($id, array $arguments, $deep = false, array &$visi
12681268
return true;
12691269
}
12701270

1271-
if ($deep && !isset($visited[$argumentId]) && 'service_container' !== (string) $argument) {
1271+
if ($deep && !isset($visited[$argumentId]) && 'service_container' !== $argumentId) {
12721272
$visited[$argumentId] = true;
12731273

12741274
$service = $this->container->getDefinition($argumentId);

Tests/Fixtures/php/services13.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public function __construct()
3636
$this->aliases = array();
3737
}
3838

39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public function compile()
43+
{
44+
throw new LogicException('You cannot compile a dumped frozen container.');
45+
}
46+
3947
/**
4048
* Gets the 'bar' service.
4149
*

0 commit comments

Comments
 (0)