Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 883e3a9

Browse files
authored
Update service_decoration.rst
Fix code example to have attribute above property declaration
1 parent ff84e73 commit 883e3a9

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)