Skip to content

Commit

Permalink
mark DoctrineMetadataCacheWarmer final + add $buildDir arg (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher authored Oct 23, 2023
1 parent 4efd966 commit d0e2a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CacheWarmer/DoctrineMetadataCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use function is_file;

/** @final since 2.11 */
class DoctrineMetadataCacheWarmer extends AbstractPhpFileCacheWarmer
{
private EntityManagerInterface $entityManager;
Expand All @@ -31,8 +32,7 @@ public function isOptional(): bool
return false;
}

/** @param string $cacheDir */
protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter): bool
protected function doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter, ?string $buildDir = null): bool
{
// cache already warmed up, no needs to do it again
if (is_file($this->phpArrayFile)) {
Expand Down

0 comments on commit d0e2a33

Please sign in to comment.