diff --git a/src/Storage/EnvStorage.php b/src/Storage/EnvStorage.php index fb809c8..629c2d3 100644 --- a/src/Storage/EnvStorage.php +++ b/src/Storage/EnvStorage.php @@ -20,7 +20,7 @@ class EnvStorage implements StorageInterface */ public function get(string $key) { - return $_ENV[$key] ?? $_SERVER[$key] ?? getenv($key) ?? null; + return $_ENV[$key] ?? $_SERVER[$key] ?? getenv($key); } /** diff --git a/src/Storage/StorageInterface.php b/src/Storage/StorageInterface.php index ecfb105..3ffd5c3 100644 --- a/src/Storage/StorageInterface.php +++ b/src/Storage/StorageInterface.php @@ -27,7 +27,7 @@ public function get(string $key); /** * Returns a list of all the configured features. * - * @return list + * @return array */ public function all(): array; } diff --git a/src/Symfony/Command/ToggleListCommand.php b/src/Symfony/Command/ToggleListCommand.php index 8afe83d..2cb7b29 100644 --- a/src/Symfony/Command/ToggleListCommand.php +++ b/src/Symfony/Command/ToggleListCommand.php @@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $table->setHeaders($headers); foreach ($this->toggleStorage->all() as $feature) { - $active = $this->toggle->isActive($feature, $context); + $active = $this->toggle->isActive(strval($feature), $context); $row = [ $feature,