Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Command/Info/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
}
$stat = fstat($fh);
fclose($fh);
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
if (isset($stat['size']) && is_numeric($stat['size']) && $stat['size'] !== $node->getSize()) {

Check failure on line 179 in core/Command/Info/File.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

RedundantCondition

core/Command/Info/File.php:179:34: RedundantCondition: Type int for $stat['size'] is always numeric (see https://psalm.dev/122)

Check failure on line 179 in core/Command/Info/File.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

RedundantCondition

core/Command/Info/File.php:179:10: RedundantCondition: Type int for $stat['size'] is always numeric (see https://psalm.dev/122)
$output->writeln(' <error>warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '</error>. This should have been automatically repaired');
}
} catch (\Exception $e) {
Expand Down
Loading