From d0e2a33810dc67dc3657f96d813512fa387a9537 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Mon, 23 Oct 2023 10:22:44 +0200 Subject: [PATCH] mark DoctrineMetadataCacheWarmer final + add $buildDir arg (#1713) --- CacheWarmer/DoctrineMetadataCacheWarmer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CacheWarmer/DoctrineMetadataCacheWarmer.php b/CacheWarmer/DoctrineMetadataCacheWarmer.php index 6a5bbebd6..7cfbd485d 100644 --- a/CacheWarmer/DoctrineMetadataCacheWarmer.php +++ b/CacheWarmer/DoctrineMetadataCacheWarmer.php @@ -10,6 +10,7 @@ use function is_file; +/** @final since 2.11 */ class DoctrineMetadataCacheWarmer extends AbstractPhpFileCacheWarmer { private EntityManagerInterface $entityManager; @@ -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)) {