From a59ef8286f0be4a1c2b472649f36f1f94ea49ce5 Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Mon, 17 Feb 2025 17:56:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Comment=20on=20connection-tab-fi?= =?UTF-8?q?elds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Settings/Fields/connection-tab-fields.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php b/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php index 409fde543..4a3265b23 100644 --- a/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php +++ b/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php @@ -28,6 +28,8 @@ return function ( ContainerInterface $container, array $fields ): array { return $fields; } + // Legacy settings module, use of `State` class is correct. + $state = $container->get( 'onboarding.state' ); assert( $state instanceof State );