Skip to content

Commit 1813d57

Browse files
authored
[2.x] Merges develop (#812)
* Fix code styling * [develop] Adds Laravel 11 support (#770) * Adds Laravel 11 support * Fix code styling * Exclude Laravel 10 on PHP 8.1 * Bumps roadrunner * Excludes L11 on PHP 8.1 * Bumps roadrunner dependencies --------- Co-authored-by: nunomaduro <[email protected]> * Uses stable versions of socialite and livewire * Uses stable version of Scout --------- Co-authored-by: nunomaduro <[email protected]>
1 parent b361587 commit 1813d57

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
php: [8.1, 8.2, 8.3]
20-
laravel: [10]
20+
laravel: [10, 11]
2121
driver: [swoole, openswoole]
22+
exclude:
23+
- php: 8.1
24+
laravel: 11
2225

2326
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.driver }}
2427

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@
1515
],
1616
"require": {
1717
"php": "^8.1.0",
18-
"laravel/framework": "^10.10.1",
18+
"laravel/framework": "^10.10.1|^11.0",
1919
"laminas/laminas-diactoros": "^3.0",
2020
"laravel/serializable-closure": "^1.3.0",
2121
"nesbot/carbon": "^2.66.0",
22-
"symfony/psr-http-message-bridge": "^2.2.0"
22+
"symfony/psr-http-message-bridge": "^2.2.0|^6.4|^7.0"
2323
},
2424
"require-dev": {
2525
"guzzlehttp/guzzle": "^7.6.1",
26-
"inertiajs/inertia-laravel": "^0.6.9",
26+
"inertiajs/inertia-laravel": "^0.6.9|^1.0",
2727
"laravel/scout": "^10.2.1",
2828
"laravel/socialite": "^5.6.1",
29-
"livewire/livewire": "^2.12.3",
29+
"livewire/livewire": "^2.12.3|^3.0",
3030
"mockery/mockery": "^1.5.1",
31-
"nunomaduro/collision": "^6.4.0|^7.5.2",
32-
"orchestra/testbench": "^8.5.2",
31+
"nunomaduro/collision": "^6.4.0|^7.5.2|^8.0",
32+
"orchestra/testbench": "^8.5.2|^9.0",
3333
"phpstan/phpstan": "^1.10.15",
34-
"phpunit/phpunit": "^10.1.3",
35-
"spiral/roadrunner-http": "^3.0.1",
36-
"spiral/roadrunner-cli": "^2.5.0"
34+
"phpunit/phpunit": "^10.4",
35+
"spiral/roadrunner-http": "^3.3.0",
36+
"spiral/roadrunner-cli": "^2.6.0"
3737
},
3838
"bin": [
3939
"bin/roadrunner-worker",
4040
"bin/swoole-server"
4141
],
4242
"conflict": {
4343
"spiral/roadrunner": "<2023.1.0",
44-
"spiral/roadrunner-cli": "<2.5.0",
45-
"spiral/roadrunner-http": "<3.0.1"
44+
"spiral/roadrunner-cli": "<2.6.0",
45+
"spiral/roadrunner-http": "<3.3.0"
4646
},
4747
"autoload": {
4848
"psr-4": {
@@ -75,6 +75,6 @@
7575
"config": {
7676
"sort-packages": true
7777
},
78-
"minimum-stability": "stable",
78+
"minimum-stability": "dev",
7979
"prefer-stable": true
8080
}

src/Commands/Concerns/InstallsRoadRunnerDependencies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ protected function ensureRoadRunnerPackageIsInstalled()
4444
return true;
4545
}
4646

47-
if (! $this->confirm('Octane requires "spiral/roadrunner-http:^3.0.1" and "spiral/roadrunner-cli:^2.5.0". Do you wish to install them as a dependencies?')) {
47+
if (! $this->confirm('Octane requires "spiral/roadrunner-http:^3.3.0" and "spiral/roadrunner-cli:^2.6.0". Do you wish to install them as a dependencies?')) {
4848
$this->error('Octane requires "spiral/roadrunner-http" and "spiral/roadrunner-cli".');
4949

5050
return false;
5151
}
5252

53-
$command = $this->findComposer().' require spiral/roadrunner-http:^3.0.1 spiral/roadrunner-cli:^2.5.0 --with-all-dependencies';
53+
$command = $this->findComposer().' require spiral/roadrunner-http:^3.3.0 spiral/roadrunner-cli:^2.6.0 --with-all-dependencies';
5454

5555
$process = Process::fromShellCommandline($command, null, null, null, null);
5656

src/Commands/Concerns/InteractsWithServers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function getSubscribedSignals(): array
155155
/**
156156
* The method will be called when the application is signaled.
157157
*/
158-
public function handleSignal(int $signal): void
158+
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false
159159
{
160160
$this->stopServer();
161161

0 commit comments

Comments
 (0)