Skip to content

Commit

Permalink
remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Jun 20, 2024
1 parent 7e9361c commit 3a21ccc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ClassScanner/CachedFileModificationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ public function generate(?array $skipFiles = null): ClassMap

$deleted = [];
foreach ($cacheContentsJson['filetimes'] as $filename => $cacheModTime) {
$currentModTime = \filemtime($filename);
if ($currentModTime === false) {
if (\is_file($filename) === false) {
$deleted[] = $filename;
} elseif ($currentModTime === $cacheModTime) {
} elseif (\filemtime($filename) === $cacheModTime) {
$skipFiles[] = $filename;
}
}
Expand Down

0 comments on commit 3a21ccc

Please sign in to comment.