-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,8 +42,6 @@ class Upgrader | |
const CHANNEL_LOCAL = 'local'; | ||
|
||
const DEFAULT_CHECK_VERSION_DELAY_HOURS = 12; | ||
const DEFAULT_CHANNEL = self::CHANNEL_ONLINE; | ||
const DEFAULT_FILENAME = 'prestashop.zip'; | ||
|
||
/** @var self::CHANNEL_* */ | ||
private $channel; | ||
|
@@ -64,7 +62,7 @@ public function __construct( | |
) { | ||
$this->currentPsVersion = $currentPsVersion; | ||
$this->phpVersionResolverService = $phpRequirementService; | ||
$this->channel = $upgradeConfiguration->getChannel() ?? self::DEFAULT_CHANNEL; | ||
$this->channel = $upgradeConfiguration->getChannel() ?? UpgradeConfiguration::DEFAULT_CHANNEL; | ||
$this->upgradeConfiguration = $upgradeConfiguration; | ||
} | ||
|
||
|
@@ -79,7 +77,7 @@ public function __construct( | |
* | ||
* @TODO ftp if copy is not possible (safe_mode for example) | ||
*/ | ||
public function downloadLast(string $dest, ?string $filename = self::DEFAULT_FILENAME): bool | ||
public function downloadLast(string $dest, string $filename = UpgradeConfiguration::DEFAULT_FILENAME): bool | ||
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.2.5)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.3.4)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.4.4)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.5.1)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.6)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.7)
Check failure on line 80 in classes/Upgrader.php GitHub Actions / PHPStan (1.7.8)
|
||
{ | ||
if ($this->onlineDestinationRelease === null) { | ||
$this->getOnlineDestinationRelease(); | ||
|