Skip to content

Commit de4e978

Browse files
committed
bug #19470 Update service_decoration.rst (Exalyon)
This PR was submitted for the 6.4 branch but it was merged into the 6.3 branch instead. Discussion ---------- Update service_decoration.rst Fix code example to have attribute above property declaration. You cannot have an attribute between the visibility and the name of the property <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 883e3a9 Update service_decoration.rst
2 parents ff84e73 + 883e3a9 commit de4e978

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

service_container/service_decoration.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
301301
class Bar
302302
{
303303
public function __construct(
304-
private #[AutowireDecorated] $inner,
304+
#[AutowireDecorated]
305+
private $inner,
305306
) {
306307
}
307308
// ...
@@ -311,7 +312,8 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
311312
class Baz
312313
{
313314
public function __construct(
314-
private #[AutowireDecorated] $inner,
315+
#[AutowireDecorated]
316+
private $inner,
315317
) {
316318
}
317319

0 commit comments

Comments
 (0)