Skip to content

Commit ba6a74a

Browse files
roxblnfkclaude
andcommitted
feat: support RoadRunner v3
- Require spiral/roadrunner ^3.0 (drop calendar versions 2023/2024/2025). - Require spiral/goridge ^4.3. - Cover Version::constraint() with calendar, v3 semver and dev-branch cases. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent b8ed300 commit ba6a74a

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

‎composer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"ext-json": "*",
4141
"ext-sockets": "*",
4242
"psr/log": "^2.0 || ^3.0",
43-
"spiral/goridge": "^4.1.0",
44-
"spiral/roadrunner": "^2023.1 || ^2024.1 || ^2025.1",
43+
"spiral/goridge": "^4.3",
44+
"spiral/roadrunner": "^3.0",
4545
"composer-runtime-api": "^2.0"
4646
},
4747
"require-dev": {

‎tests/Unit/EnvironmentTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function testGetRPCAddressWithValue(): void
4747

4848
public function testGetVersionWithValue(): void
4949
{
50-
$env = new Environment(['RR_VERSION' => '2024.1.3']);
51-
$this->assertEquals('2024.1.3', $env->getVersion());
50+
$env = new Environment(['RR_VERSION' => '3.0.0']);
51+
$this->assertEquals('3.0.0', $env->getVersion());
5252
}
5353

5454
public function testFromGlobals(): void

‎tests/Unit/VersionTest.php‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,39 @@ public static function provideVersions(): iterable
6060
'1.*'
6161
];
6262

63+
yield 'calendar version' => [
64+
[
65+
'spiral/roadrunner' => [
66+
'pretty_version' => 'v2025.1.15',
67+
],
68+
],
69+
'2025.1.15',
70+
'2025.*'
71+
];
72+
73+
yield 'semver v3 after calendar versions' => [
74+
[
75+
'spiral/roadrunner' => [
76+
'pretty_version' => 'v3.0.0',
77+
],
78+
'spiral/roadrunner-worker' => [
79+
'pretty_version' => 'v3.7.0',
80+
],
81+
],
82+
'3.0.0',
83+
'3.*'
84+
];
85+
86+
yield 'v3 dev branch' => [
87+
[
88+
'spiral/roadrunner' => [
89+
'pretty_version' => '3.x-dev',
90+
],
91+
],
92+
'3.x-dev',
93+
'3.*'
94+
];
95+
6396
yield [
6497
[
6598
'spiral/roadrunner-http' => [

0 commit comments

Comments
 (0)