Skip to content

Commit 5a73de5

Browse files
Merge branch '6.1' into 6.2
* 6.1: [HttpClient] Fix computing retry delay when using RetryableHttpClient [Uid] Fix validating UUID variant bits [Validator][UID] Stop to first ULID format violation [Bridge] Fix mkdir() race condition in ProxyCacheWarmer [Cache] update readme Bug #42343 [Security] Fix valid remember-me token exposure to the second consequent request Prevent exception if request stack is empty Psr18Client ignore invalid HTTP headers skip a transient test on AppVeyor
2 parents 9422fdb + ca0fdec commit 5a73de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CacheWarmer/ProxyCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function warmUp(string $cacheDir): array
4848
foreach ($this->registry->getManagers() as $em) {
4949
// we need the directory no matter the proxy cache generation strategy
5050
if (!is_dir($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
51-
if (false === @mkdir($proxyCacheDir, 0777, true)) {
51+
if (false === @mkdir($proxyCacheDir, 0777, true) && !is_dir($proxyCacheDir)) {
5252
throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
5353
}
5454
} elseif (!is_writable($proxyCacheDir)) {

0 commit comments

Comments
 (0)