Skip to content

Commit 78e828d

Browse files
committed
Roave#157 report current tool version in CLI --version
Fixes Roave#157
1 parent 5e388c3 commit 78e828d

File tree

3 files changed

+206
-196
lines changed

3 files changed

+206
-196
lines changed

bin/roave-backward-compatibility-check.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Composer\Factory;
88
use Composer\Installer;
99
use Composer\IO\ConsoleIO;
10+
use PackageVersions\Versions;
1011
use Roave\BackwardCompatibility\Command;
1112
use Roave\BackwardCompatibility\CompareClasses;
1213
use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased;
@@ -51,7 +52,7 @@
5152
throw new RuntimeException('Could not find Composer autoload.php');
5253
})();
5354

54-
$application = new Application();
55+
$application = new Application('roave/backward-compatibility-check', Versions::getVersion('roave/backward-compatibility-check'));
5556
$helperSet = $application->getHelperSet();
5657
$input = new ArgvInput();
5758
$output = new ConsoleOutput();

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"beberlei/assert": "^3.2.1",
88
"composer/composer": "^1.9.0",
99
"nikolaposa/version": "^3.1.0",
10+
"ocramius/package-versions": "^1.5.1",
1011
"roave/better-reflection": "^3.4.0",
1112
"symfony/console": "^4.3.3",
1213
"symfony/process": "^4.3.4",

0 commit comments

Comments
 (0)