Skip to content

Commit

Permalink
Switch to standard anonymous functions for 7.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Nov 30, 2023
1 parent 43920f5 commit b2b8e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Schema/Full_Activation_Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Schema/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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; } );
}

/**
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit b2b8e3b

Please sign in to comment.