summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2020-12-08 00:45:30 +0500
committerParamtamtam <[email protected]>2020-12-08 00:45:30 +0500
commitda3757e6f6b60e561240a82132a267bd6f07b82d (patch)
treed2469bdbc9311045e7061a25459c75e13dd32d72 /bin
parent4bd8442a996260189230f386ff3b0254675899f6 (diff)
Composer package ocramius/package-versions replaced with composer/package-versions-deprecated
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rr7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/rr b/bin/rr
index 68e38591..d7d0b4f2 100755
--- a/bin/rr
+++ b/bin/rr
@@ -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);