We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae9a558 commit 246afe8Copy full SHA for 246afe8
src/DependencyInjection/ContainerFactory.php
@@ -136,15 +136,14 @@ public function clearOldContainers(string $tempDirectory): void
136
$twoDaysAgo = time() - 24 * 60 * 60 * 2;
137
138
foreach ($finder as $containerFile) {
139
- if ($containerFile->getATime() > $twoDaysAgo) {
+ $path = $containerFile->getRealPath();
140
+ if ($path === false) {
141
continue;
142
}
- if ($containerFile->getCTime() > $twoDaysAgo) {
143
+ if ($containerFile->getATime() > $twoDaysAgo) {
144
145
-
146
- $path = $containerFile->getRealPath();
147
- if ($path === false) {
+ if ($containerFile->getCTime() > $twoDaysAgo) {
148
149
150
0 commit comments