diff --git a/classes/ThirdParty/Plugins/GravityForms.php b/classes/ThirdParty/Plugins/GravityForms.php index acf52e53..6e5d9e26 100644 --- a/classes/ThirdParty/Plugins/GravityForms.php +++ b/classes/ThirdParty/Plugins/GravityForms.php @@ -68,6 +68,6 @@ private function is_gravity_forms_no_conflict_mode_enabled(): bool { return is_plugin_active( 'gravityforms/gravityforms.php' ) && class_exists( 'GFCommon' ) && get_option( 'gform_enable_noconflict', false ) - && GFForms::is_gravity_page(); + && GFForms::is_gravity_page(); // @phpstan-ignore-line } } diff --git a/classes/ThirdParty/ServiceProvider.php b/classes/ThirdParty/ServiceProvider.php index 105d709e..bbd22496 100644 --- a/classes/ThirdParty/ServiceProvider.php +++ b/classes/ThirdParty/ServiceProvider.php @@ -54,6 +54,6 @@ public function get_subscribers() { * @return void */ public function register(): void { - $this->getContainer()->share( 'gravity_from_subscriber', GravityForms::class ); + $this->getContainer()->addShared( 'gravity_from_subscriber', GravityForms::class ); } }