diff --git a/lib/private/Repair/ClearGeneratedAvatarCache.php b/lib/private/Repair/ClearGeneratedAvatarCache.php index 314299a052817..b180dc31b3e4e 100644 --- a/lib/private/Repair/ClearGeneratedAvatarCache.php +++ b/lib/private/Repair/ClearGeneratedAvatarCache.php @@ -30,35 +30,29 @@ use OCP\Migration\IRepairStep; class ClearGeneratedAvatarCache implements IRepairStep { - - /** @var AvatarManager */ - protected $avatarManager; - - /** @var IConfig */ - private $config; + protected AvatarManager $avatarManager; + private IConfig $config; public function __construct(IConfig $config, AvatarManager $avatarManager) { $this->config = $config; $this->avatarManager = $avatarManager; } - public function getName() { + public function getName(): string { return 'Clear every generated avatar on major updates'; } /** * Check if this repair step should run - * - * @return boolean */ - private function shouldRun() { + private function shouldRun(): bool { $versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0.0'); - // was added to 15.0.0.4 - return version_compare($versionFromBeforeUpdate, '15.0.0.4', '<='); + // was added to 25.0.0.8 + return version_compare($versionFromBeforeUpdate, '25.0.0.8', '<='); } - public function run(IOutput $output) { + public function run(IOutput $output): void { if ($this->shouldRun()) { try { $this->avatarManager->clearCachedAvatars(); diff --git a/version.php b/version.php index 75578ed166857..d3196cc64e192 100644 --- a/version.php +++ b/version.php @@ -30,7 +30,7 @@ // between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel // when updating major/minor version number. -$OC_Version = [25, 0, 0, 7]; +$OC_Version = [25, 0, 0, 14]; // The human readable string $OC_VersionString = '25.0.0 beta 3';