Skip to content

Commit 6be0972

Browse files
authored
Corrected missing property promotion.
Fixes #18886 . Promoted the constructor parameter to a private property to fix the example code.
1 parent 14e6e8e commit 6be0972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/autowiring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ attribute::
694694
{
695695
public function __construct(
696696
#[AutowireServiceClosure('third_party.remote_message_formatter')]
697-
\Closure $messageFormatterResolver
697+
private \Closure $messageFormatterResolver
698698
) {
699699
}
700700

0 commit comments

Comments
 (0)