From afa18f20925f5fc222dd70780e937a260364a108 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 21 Apr 2020 15:13:01 +0200 Subject: [PATCH] Fix semver usage --- tests/Composer/Test/DependencyResolver/SolverTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/DependencyResolver/SolverTest.php b/tests/Composer/Test/DependencyResolver/SolverTest.php index 5fca6bfc2..423a4bf1b 100644 --- a/tests/Composer/Test/DependencyResolver/SolverTest.php +++ b/tests/Composer/Test/DependencyResolver/SolverTest.php @@ -25,6 +25,7 @@ use Composer\Repository\InstalledArrayRepository; use Composer\Repository\RepositorySet; use Composer\Test\TestCase; use Composer\Semver\Constraint\MultiConstraint; +use Composer\Semver\Constraint\EmptyConstraint; class SolverTest extends TestCase { @@ -378,7 +379,7 @@ class SolverTest extends TestCase { $this->repoLocked->addPackage($packageA = $this->getPackage('A', '1.0')); $this->repo->addPackage($packageB = $this->getPackage('B', '1.0')); - $packageB->setReplaces(array('a' => new Link('B', 'A', new MultiConstraint(array())))); + $packageB->setReplaces(array('a' => new Link('B', 'A', new EmptyConstraint()))); $this->reposComplete();