Skip to content

Commit

Permalink
Close the stream
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored Oct 20, 2023
1 parent c65df09 commit 1ac12cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/TempManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function getOldFiles() {
$cutOfTime = time() - 3600;
$files = [];
$dh = opendir($this->tmpBaseDir);
if ($dh) {
if (is_resource($dh) {
while (($file = readdir($dh)) !== false) {

Check failure on line 193 in lib/private/TempManager.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

ParseError

lib/private/TempManager.php:193:4: ParseError: Syntax error, unexpected T_WHILE on line 193 (see https://psalm.dev/173)
if (substr($file, 0, 7) === self::TMP_PREFIX) {
$path = $this->tmpBaseDir . '/' . $file;
Expand All @@ -199,6 +199,7 @@ protected function getOldFiles() {
}
}
}
closedir($dh);
}
return $files;

Check failure on line 204 in lib/private/TempManager.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

ParseError

lib/private/TempManager.php:204:3: ParseError: Syntax error, unexpected T_RETURN on line 204 (see https://psalm.dev/173)
}
Expand Down

0 comments on commit 1ac12cf

Please sign in to comment.