Skip to content

Commit

Permalink
Fix PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed May 5, 2023
1 parent 7ba749a commit 8bea0fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Storage/EnvStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function get(string $key);
/**
* Returns a list of all the configured features.
*
* @return list<string>
* @return array<int|string, mixed>
*/
public function all(): array;
}
2 changes: 1 addition & 1 deletion src/Symfony/Command/ToggleListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8bea0fc

Please sign in to comment.