Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hydephp/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 11, 2024
2 parents 893eb84 + b86fa25 commit 446eb17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Commands/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
use function chmod;
use function ltrim;
use function umask;
use function fopen;
use function config;
use function filled;
use function rename;
use function fclose;
use function defined;
use function dirname;
use function explode;
Expand All @@ -43,6 +41,7 @@
use function extension_loaded;
use function sys_get_temp_dir;
use function file_get_contents;
use function gc_collect_cycles;
use function get_included_files;
use function openssl_pkey_get_public;

Expand Down Expand Up @@ -360,7 +359,7 @@ protected function moveFile(string $downloadedFile, string $applicationPath): vo

// Release the file handle
clearstatcache(true, $applicationPath);
fclose(fopen($applicationPath, 'r'));
gc_collect_cycles();
}

protected function updateViaComposer(): void
Expand Down

0 comments on commit 446eb17

Please sign in to comment.