Skip to content

Commit 246afe8

Browse files
committed
Possible fix
1 parent ae9a558 commit 246afe8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/DependencyInjection/ContainerFactory.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,14 @@ public function clearOldContainers(string $tempDirectory): void
136136
$twoDaysAgo = time() - 24 * 60 * 60 * 2;
137137

138138
foreach ($finder as $containerFile) {
139-
if ($containerFile->getATime() > $twoDaysAgo) {
139+
$path = $containerFile->getRealPath();
140+
if ($path === false) {
140141
continue;
141142
}
142-
if ($containerFile->getCTime() > $twoDaysAgo) {
143+
if ($containerFile->getATime() > $twoDaysAgo) {
143144
continue;
144145
}
145-
146-
$path = $containerFile->getRealPath();
147-
if ($path === false) {
146+
if ($containerFile->getCTime() > $twoDaysAgo) {
148147
continue;
149148
}
150149

0 commit comments

Comments
 (0)