Skip to content

Commit

Permalink
Merge pull request #492 from Roave/dependabot/composer/composer/compo…
Browse files Browse the repository at this point in the history
…ser-2.3.2

Bump composer/composer from 2.2.10 to 2.3.2
  • Loading branch information
Ocramius authored Mar 31, 2022
2 parents 9062968 + 6462a1f commit b65c095
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 38 deletions.
17 changes: 11 additions & 6 deletions bin/roave-backward-compatibility-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

namespace Roave\ApiCompareCli;

use Composer\Composer;
use Composer\Factory;
use Composer\Installer;
use Composer\IO\ConsoleIO;
use PackageVersions\Versions;
use Psl\Type;
use Roave\BackwardCompatibility\Command;
use Roave\BackwardCompatibility\CompareClasses;
use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased;
Expand Down Expand Up @@ -69,12 +71,15 @@
static function (string $installationPath) use ($composerIo): Installer {
return Installer::create(
$composerIo,
(new Factory())->createComposer(
$composerIo,
null,
true,
$installationPath
)
Type\object(Composer::class)
->assert(
(new Factory())->createComposer(
$composerIo,
null,
true,
$installationPath
)
)
);
},
$astLocator
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"php": "~8.0.0 || ~8.1.0",
"ext-json": "*",
"azjezz/psl": "^1.9.3",
"composer/composer": "^2.2.10",
"composer/composer": "^2.3.2",
"nikolaposa/version": "^4.1.0",
"ocramius/package-versions": "^2.5.1",
"roave/better-reflection": "^5.3.0",
Expand Down
64 changes: 35 additions & 29 deletions composer.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ public function testWillLocateDependencies(): void
->composerInstaller
->expects(self::once())
->method('run')
->willReturnCallback(function (): void {
->willReturnCallback(function (): int {
self::assertSame($this->expectedInstallationPath, Env\current_dir());

return 0;
});

$locator = ($this->locateDependencies)($this->expectedInstallationPath, false);
Expand Down Expand Up @@ -162,8 +164,10 @@ public function testDevelopmentDependenciesCanBeOptionallyInstalled(): void
->composerInstaller
->expects(self::once())
->method('run')
->willReturnCallback(function (): void {
->willReturnCallback(function (): int {
self::assertSame($this->expectedInstallationPath, Env\current_dir());

return 0;
});

$locator = ($this->locateDependencies)($this->expectedInstallationPath, true);
Expand Down

0 comments on commit b65c095

Please sign in to comment.