Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 883e3a9

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

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎service_container/service_decoration.rst

Copy file name to clipboardExpand all lines: service_container/service_decoration.rst
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.