Skip to content

Commit

Permalink
Merge branch 'sw-26770/updater-php-compatibility' into '5.7'
Browse files Browse the repository at this point in the history
SW-26770 - Resolve PHPv8.1 compatibility problem in updater command

See merge request shopware/5/product/shopware!840
  • Loading branch information
DennisGarding committed Jun 21, 2022
2 parents ca7392b + 6f24d5a commit 97792c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recovery/update/src/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->getHelper('question')
);

if (!is_dir(UPDATE_FILES_PATH) && !is_dir(UPDATE_ASSET_PATH)) {
if (!is_dir(UPDATE_FILES_PATH ?? '') && !is_dir(UPDATE_ASSET_PATH ?? '')) {
$ioService->writeln('No update files found.');

return 1;
Expand Down

0 comments on commit 97792c7

Please sign in to comment.