diff --git a/src/Schema/Full_Activation_Provider.php b/src/Schema/Full_Activation_Provider.php index 9fdcc71..c093ad9 100644 --- a/src/Schema/Full_Activation_Provider.php +++ b/src/Schema/Full_Activation_Provider.php @@ -63,7 +63,7 @@ public function register() { } $this->did_register = true; - $this->container->bind( 'stellar_schema_fully_activated', fn() => true ); + $this->container->bind( 'stellar_schema_fully_activated', static function() { return true; } ); /* * This block should be the only one capturing exceptions thrown in the context of diff --git a/src/Schema/Schema.php b/src/Schema/Schema.php index f5f3f6c..45c2d0d 100644 --- a/src/Schema/Schema.php +++ b/src/Schema/Schema.php @@ -61,7 +61,7 @@ public static function init(): void { $container->singleton( static::class, static::class ); $container->get( static::class )->register(); - $container->bind( 'stellarwp_schema_registered', fn() => true ); + $container->bind( 'stellarwp_schema_registered', static function() { return true; } ); } /** @@ -92,7 +92,7 @@ public function register() { $this->container->get( Full_Activation_Provider::class )->register(); // Set a flag in the container to indicate there was a full activation of the CT1 component. - $this->container->bind( 'stellarwp_schema_fully_activated', fn() => true ); + $this->container->bind( 'stellarwp_schema_fully_activated', static function() { return true; } ); $this->register_hooks(); }