summaryrefslogtreecommitdiff
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
parent4bd8442a996260189230f386ff3b0254675899f6 (diff)
Composer package ocramius/package-versions replaced with composer/package-versions-deprecated
-rwxr-xr-xbin/rr7
-rw-r--r--composer.json2
-rw-r--r--rr_zip_4931.tar.gz1
3 files changed, 8 insertions, 2 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);
diff --git a/composer.json b/composer.json
index 6a8ea689..383ac2d1 100644
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,7 @@
"psr/http-message": "^1.0",
"symfony/console": "^2.5.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
"laminas/laminas-diactoros": "^1.3 || ^2.0",
- "ocramius/package-versions": "^1.4 || ~2.0"
+ "composer/package-versions-deprecated": "^1.8"
},
"config": {
"vendor-dir": "vendor_php"
diff --git a/rr_zip_4931.tar.gz b/rr_zip_4931.tar.gz
new file mode 100644
index 00000000..85373076
--- /dev/null
+++ b/rr_zip_4931.tar.gz
@@ -0,0 +1 @@
+Not Found \ No newline at end of file