From d59ebfa684b2b81a9cf953ede7fb6fdb3a8e182d Mon Sep 17 00:00:00 2001 From: IanM <16573496+imorland@users.noreply.github.com> Date: Tue, 18 Nov 2025 22:01:50 +0000 Subject: [PATCH] fix: extend not called (#5) * fix: extend not called * chore: phpstan --- .github/workflows/backend.yml | 2 +- composer.json | 1 + resources/locale/en.yml | 2 +- src/Extend/EnableRedis.php | 8 +++++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 6b2f0c7..6703e53 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -8,6 +8,6 @@ jobs: with: enable_backend_testing: false enable_phpstan: true - php_versions: '["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]' + php_versions: '["8.1", "8.2", "8.3", "8.4"]' backend_directory: . diff --git a/composer.json b/composer.json index 189e3b6..4bc12a1 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ }, "homepage": "https://glowingblue.com", "require": { + "php": "^8.1", "flarum/core": "^1.8.5", "fof/redis": "^1.0" }, diff --git a/resources/locale/en.yml b/resources/locale/en.yml index 2d5fb06..d6c76f7 100644 --- a/resources/locale/en.yml +++ b/resources/locale/en.yml @@ -6,4 +6,4 @@ glowingblue-redis-setup: Enable Redis sessions (all users will be logged out after changing this setting) enable_queue: Enable Redis queue horizon_config: "Horizon config (format: JSON)." - horizon_help_text: This will be passed to (new \Blomstra\Horizon\Extend\Horizon)->config(...)) + horizon_help_text: This will be passed to (new \FoF\Horizon\Extend\Horizon)->config(...)) diff --git a/src/Extend/EnableRedis.php b/src/Extend/EnableRedis.php index 8bc7f9c..344001c 100644 --- a/src/Extend/EnableRedis.php +++ b/src/Extend/EnableRedis.php @@ -29,9 +29,11 @@ class EnableRedis implements ExtenderInterface { $config = $this->buildConfig(); - (new Redis($config)) - ->disable($this->getDisabledServices()) - ->extend($container, $extension); + /** @var Redis $redis */ + $redis = (new Redis($config)) + ->disable($this->getDisabledServices()); + + $redis->extend($container, $extension); } private function getDisabledServices(): array