Skip to content

Commit

Permalink
Remove deprecated composer 1 methods (#2605)
Browse files Browse the repository at this point in the history
* Remove deprecated composer 1 methods

* Removing the package from the dependencies

* No version name
  • Loading branch information
mamazu committed Mar 23, 2024
1 parent a6f3a78 commit 6f4c98e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 78 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "MIT",
"require": {
"php": "^8.1",
"composer/package-versions-deprecated": "^1.0",
"composer/xdebug-handler": "^3.0",
"symfony/yaml": "^5.1",
"phpactor/container": "^2.2.0",
Expand Down
77 changes: 2 additions & 75 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Phpactor;

use PackageVersions\Versions;
use Composer\InstalledVersions;
use Phpactor\Cast\Cast;
use Phpactor\Extension\Logger\Formatter\PrettyFormatter;
use Symfony\Component\Console\Application as SymfonyApplication;
Expand All @@ -25,7 +25,7 @@ class Application extends SymfonyApplication

public function __construct(private string $vendorDir, private ?string $phpactorBin = null)
{
parent::__construct('Phpactor', Cast::toString(Versions::getVersion('phpactor/phpactor')));
parent::__construct('Phpactor', Cast::toString(InstalledVersions::getVersion('phpactor/phpactor')));
}

public function doRun(InputInterface $input, OutputInterface $output): int
Expand Down

0 comments on commit 6f4c98e

Please sign in to comment.