We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
resources/all-versions.json
1 parent 049bccf commit ca6748cCopy full SHA for ca6748c
2 files changed
bin/update-all-versions
@@ -3,14 +3,14 @@
3
4
declare(strict_types=1);
5
6
+use Composer\Semver\Semver;
7
use TypistTech\PhpMatrix\Releases\PhpNetReleases;
8
9
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
10
-define('ALL_VERSIONS_FILE', __DIR__ . '/../resources/all-versions.json');
11
-
12
$releases = new PhpNetReleases;
13
$data = $releases->all();
+$data = Semver::rsort($data);
14
15
$content = json_encode($data, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
16
-file_put_contents(ALL_VERSIONS_FILE, $content);
+file_put_contents(__DIR__ . '/../resources/all-versions.json', $content);
0 commit comments