From af600e20fca90338091acffb6f335c3094b82984 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Sun, 22 Oct 2023 11:27:25 +0200 Subject: [PATCH 1/2] fix doWarmUp $buildDir deprecation --- CacheWarmer/DoctrineMetadataCacheWarmer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CacheWarmer/DoctrineMetadataCacheWarmer.php b/CacheWarmer/DoctrineMetadataCacheWarmer.php index 6a5bbebd6..65f55ed3d 100644 --- a/CacheWarmer/DoctrineMetadataCacheWarmer.php +++ b/CacheWarmer/DoctrineMetadataCacheWarmer.php @@ -31,8 +31,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)) { From 3f193e5af35a20da7ae7bc4ca0714ba8965b359f Mon Sep 17 00:00:00 2001 From: David Maicher Date: Mon, 23 Oct 2023 10:09:12 +0200 Subject: [PATCH 2/2] Revert "fix doWarmUp $buildDir deprecation" --- CacheWarmer/DoctrineMetadataCacheWarmer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CacheWarmer/DoctrineMetadataCacheWarmer.php b/CacheWarmer/DoctrineMetadataCacheWarmer.php index 65f55ed3d..6a5bbebd6 100644 --- a/CacheWarmer/DoctrineMetadataCacheWarmer.php +++ b/CacheWarmer/DoctrineMetadataCacheWarmer.php @@ -31,7 +31,8 @@ public function isOptional(): bool return false; } - protected function doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter, ?string $buildDir = null): bool + /** @param string $cacheDir */ + protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter): bool { // cache already warmed up, no needs to do it again if (is_file($this->phpArrayFile)) {