Skip to content

Commit bb55ded

Browse files
committed
Change update notice to etherpad higher than 2.0.0
1 parent 7abf84e commit bb55ded

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Console/GenerateFileHashesCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
namespace Gared\EtherScan\Console;
55

6-
use Gared\EtherScan\Api\GithubApi;
76
use Gared\EtherScan\Service\FileHashLookupService;
8-
use Gared\EtherScan\Service\RevisionLookupService;
97
use GuzzleHttp\Client;
108
use GuzzleHttp\Exception\GuzzleException;
119
use Symfony\Component\Console\Attribute\AsCommand;
@@ -67,4 +65,4 @@ private function getFileHash(string $url, string $path): ?string
6765

6866
return null;
6967
}
70-
}
68+
}

src/Console/ScanCommandOutputHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ public function onVersionResult(?string $minVersion, ?string $maxVersion): void
154154
return;
155155
}
156156

157-
if (version_compare($maxVersion, '1.9.0', '<')) {
158-
$this->symfonyStyle->error('You have an old version of etherpad! Please update to 1.9.0 or newer!');
157+
if (version_compare($maxVersion, '2.0.0', '<')) {
158+
$this->symfonyStyle->error('You have an old version of etherpad! Please update to 2.0.0 or newer!');
159159
}
160160

161161
if ($minVersion === null) {
@@ -180,4 +180,4 @@ public function getConsoleLogger(): ?LoggerInterface
180180
{
181181
return new ConsoleLogger($this->output);
182182
}
183-
}
183+
}

0 commit comments

Comments
 (0)