Skip to content

Commit

Permalink
fix: explicitly mark service parameter as nullable
Browse files Browse the repository at this point in the history
(PHP 8.4)
  • Loading branch information
romm committed Nov 24, 2024
1 parent 17d744e commit 4916a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/MapperCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
private MapperBuilder $mapperBuilder
) {}

public function warmUp(string $cacheDir, string $buildDir = null): array
public function warmUp(string $cacheDir, ?string $buildDir = null): array
{
$this->mapperBuilder->warmup();

Check warning on line 21 in src/Cache/MapperCacheWarmer.php

View workflow job for this annotation

GitHub Actions / Mutation tests

Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function warmUp(string $cacheDir, ?string $buildDir = null) : array { - $this->mapperBuilder->warmup(); + foreach ($this->classesToWarmup->getProvidedServices() as $class) { $this->mapperBuilder->warmup($class); }

Expand Down

0 comments on commit 4916a3b

Please sign in to comment.