Skip to content

Commit ab34a86

Browse files
committed
Use jean85/pretty-package-versions instead of ocramius/package-versions
1 parent 7dab60b commit ab34a86

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": "^7.0",
1414
"api-clients/command-bus": "^2.0",
1515
"clue/block-react": "^1.1",
16-
"ocramius/package-versions": "^1.1",
16+
"jean85/pretty-package-versions": "^1.0",
1717
"react/dns": "^0.4.9",
1818
"react/http-client": "^0.5 || ^0.4.17",
1919
"reactivex/rxphp": "^2.0.4",

composer.lock

Lines changed: 44 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ApiSettings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ApiClients\Client\Pusher;
44

5-
use PackageVersions\Versions;
5+
use Jean85\PrettyVersions;
66

77
final class ApiSettings
88
{
@@ -15,7 +15,7 @@ final class ApiSettings
1515
public static function getVersion(string $version = ''): string
1616
{
1717
if ($version === '') {
18-
$version = Versions::getVersion('api-clients/pusher');
18+
$version = PrettyVersions::getVersion('api-clients/pusher')->getFullVersion();
1919
}
2020

2121
list($version, $hash) = explode('@', $version);

0 commit comments

Comments
 (0)