Skip to content

Commit

Permalink
Fix from feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Jul 18, 2024
1 parent d4eb395 commit 18529de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 1 addition & 4 deletions classes/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,7 @@ public function getWarningExists(): bool
return $this->warning_exists;
}

/**
* @return int|null
*/
public function getProgressPercentage()
public function getProgressPercentage(): ?int
{
return $this->progressPercentage;
}
Expand Down
8 changes: 7 additions & 1 deletion classes/Task/AbstractTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@
use PrestaShop\Module\AutoUpgrade\Analytics;
use PrestaShop\Module\AutoUpgrade\Log\Logger;
use PrestaShop\Module\AutoUpgrade\UpgradeContainer;
use PrestaShop\Module\AutoUpgrade\UpgradeTools\Backlog;
use PrestaShop\Module\AutoUpgrade\UpgradeTools\Progress\Backlog;
use PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator;

abstract class AbstractTask
{
/** @var int|null */
const BASE_PROGRESS = null;

/**
* This constant exists while the backup and upgrade are on the same workflow
* @var int|null
*/
const BASE_PROGRESS_WITHOUT_BACKUP = null;

/**
Expand Down

0 comments on commit 18529de

Please sign in to comment.