Skip to content

Commit

Permalink
style: cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sybio committed Aug 28, 2024
1 parent f4d4bb0 commit 23fd3c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DataCollector/FeatureCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(FeatureManager $manager, StorageInterface $storage)
$this->storage = $storage;
}

public function collect(Request $request, Response $response, \Throwable $exception = null): void
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
{
$features = $this->storage->all();
$activeFeatureCount = count(
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Feature implements FeatureInterface
/**
* Constructor
*/
public function __construct(string $key, bool $enabled, string $description = null)
public function __construct(string $key, bool $enabled, ?string $description = null)
{
$this->key = $key;
$this->enabled = $enabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
$this->featureManager = $this->createMock(FeatureManager::class);

$this->expressionLanguage = new class($this->featureManager) extends ExpressionLanguage {
public function __construct($featureManager, CacheItemPoolInterface $cache = null, array $providers = [])
public function __construct($featureManager, ?CacheItemPoolInterface $cache = null, array $providers = [])
{
array_unshift($providers, new FeatureFlagExpressionLanguageProvider($featureManager));

Expand Down

0 comments on commit 23fd3c0

Please sign in to comment.