fix: extend not called (#5)
Some checks failed
GB Redis Setup PHP / run (push) Has been cancelled
GB Redis Setup JS / run (push) Has been cancelled

* fix: extend not called

* chore: phpstan
This commit is contained in:
IanM
2025-11-18 22:01:50 +00:00
committed by GitHub
parent b03ca35d54
commit d59ebfa684
4 changed files with 8 additions and 5 deletions

View File

@@ -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