diff options
author | Paramtamtam <[email protected]> | 2020-12-08 00:45:30 +0500 |
---|---|---|
committer | Paramtamtam <[email protected]> | 2020-12-08 00:45:30 +0500 |
commit | da3757e6f6b60e561240a82132a267bd6f07b82d (patch) | |
tree | d2469bdbc9311045e7061a25459c75e13dd32d72 /bin | |
parent | 4bd8442a996260189230f386ff3b0254675899f6 (diff) |
Composer package ocramius/package-versions replaced with composer/package-versions-deprecated
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rr | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -57,13 +57,18 @@ use function Couchbase\defaultDecoder; class RRHelper { /** + * @var string + */ + public const SELF_PACKAGE_NAME = 'spiral/roadrunner'; + + /** * Returns version of RoadRunner based on current package version. * * @return string Version of RoadRunner (eg.: `1.8.0`) */ public static function getVersion(): string { - $version = \PackageVersions\Versions::getVersion('spiral/roadrunner'); + $version = \PackageVersions\Versions::getVersion(self::SELF_PACKAGE_NAME); if (\is_int($delimiter_position = \mb_strpos($version, '@'))) { $version = \mb_substr($version, 0, (int) $delimiter_position); |