From dc51ebed9742a5a5e38f486e1f47b1fbfc0b1221 Mon Sep 17 00:00:00 2001 From: Yannick Ihmels Date: Wed, 29 Nov 2023 13:29:17 +0100 Subject: [PATCH] Add `$buildDir` to `CachePoolClearerCacheWarmer::warmUp()` Symfony 7 adds a new parameter `$buildDir` to `WarmableInterface::warmUp()`, so that the method signature of `CachePoolClearerCacheWarmer::warmUp()` needs to be updated. --- src/Symfony/Bundle/CacheWarmer/CachePoolClearerCacheWarmer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/CacheWarmer/CachePoolClearerCacheWarmer.php b/src/Symfony/Bundle/CacheWarmer/CachePoolClearerCacheWarmer.php index ca2f96b2490..4dba3c714f5 100644 --- a/src/Symfony/Bundle/CacheWarmer/CachePoolClearerCacheWarmer.php +++ b/src/Symfony/Bundle/CacheWarmer/CachePoolClearerCacheWarmer.php @@ -34,7 +34,7 @@ public function __construct(private readonly Psr6CacheClearer $poolClearer, priv * * @return string[] */ - public function warmUp(string $cacheDir): array + public function warmUp(string $cacheDir, string $buildDir = null): array { foreach ($this->pools as $pool) { if ($this->poolClearer->hasPool($pool)) {