Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitde4e978

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.rstFix 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 containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `7.x` for features of unreleased versions).-->Commits-------883e3a9 Update service_decoration.rst
2 parentsff84e73 +883e3a9 commitde4e978

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)

[8]ページ先頭

©2009-2025 Movatter.jp