From 6be09724aadfde2f1994c8dd5cda3d76832270c4 Mon Sep 17 00:00:00 2001 From: miqrogroove <1371835+miqrogroove@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:48:29 -0400 Subject: [PATCH] Corrected missing property promotion. Fixes #18886 . Promoted the constructor parameter to a private property to fix the example code. --- service_container/autowiring.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst index b14c1b5423d..483a68c26e9 100644 --- a/service_container/autowiring.rst +++ b/service_container/autowiring.rst @@ -694,7 +694,7 @@ attribute:: { public function __construct( #[AutowireServiceClosure('third_party.remote_message_formatter')] - \Closure $messageFormatterResolver + private \Closure $messageFormatterResolver ) { }