--- ../tests/Unit/AndVersionConstraintGroupTest.php	2026-06-27 12:47:49.949584041 +0300
+++ ../tests/Unit/AndVersionConstraintGroupTest.php	2026-06-27 12:48:51.696591605 +0300
@@ -21,11 +21,11 @@
 
         $firstConstraint->expects($this->once())
             ->method('complies')
-            ->will($this->returnValue(true));
+            ->willReturn(true);
 
         $secondConstraint->expects($this->once())
             ->method('complies')
-            ->will($this->returnValue(false));
+            ->willReturn(false);
 
         $group = new AndVersionConstraintGroup('foo', [$firstConstraint, $secondConstraint]);
 
@@ -38,11 +38,11 @@
 
         $firstConstraint->expects($this->once())
             ->method('complies')
-            ->will($this->returnValue(true));
+            ->willReturn(true);
 
         $secondConstraint->expects($this->once())
             ->method('complies')
-            ->will($this->returnValue(true));
+            ->willReturn(true);
 
         $group = new AndVersionConstraintGroup('foo', [$firstConstraint, $secondConstraint]);
 
