Skip to content

Commit 428006f

Browse files
[DI] Fix PhpDumper generated doc block
1 parent efdbeef commit 428006f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ private function addService($id, Definition $definition)
628628
}
629629

630630
if ($definition->isAutowired()) {
631-
$doc = <<<EOF
631+
$doc .= <<<EOF
632632
633633
*
634634
* This service is autowired.

Tests/Fixtures/php/services24.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public function __construct()
3333
/**
3434
* Gets the 'foo' service.
3535
*
36+
* This service is shared.
37+
* This method always returns the same instance of the service.
38+
*
3639
* This service is autowired.
3740
*
3841
* @return \Foo A Foo instance

0 commit comments

Comments
 (0)