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 );