Skip to content

Commit 149f9c5

Browse files
authored
Merge pull request vyuldashev#525 from vyuldashev/lara10
Enable Laravel 10
2 parents d20f624 + babf55f commit 149f9c5

16 files changed

+12
-160
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: ['8.0', '8.1']
17-
stability: [prefer-lowest, prefer-stable]
16+
php: ['8.0', '8.1', '8.2']
17+
stability: ['prefer-lowest', prefer-stable]
18+
laravel: ['^9.0', '^10.0']
19+
exclude:
20+
- php: '8.0'
21+
laravel: '^10.0'
1822

19-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
23+
name: 'PHP ${{ matrix.php }} - Laravel: ${{matrix.laravel}} - ${{ matrix.stability }}'
2024

2125
steps:
2226
- name: Checkout code
@@ -40,7 +44,7 @@ jobs:
4044
run: docker-compose up -d rabbitmq
4145

4246
- name: Install dependencies
43-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
47+
run: composer update --with='laravel/framework:${{matrix.laravel}}' --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4448

4549
- name: Run Laravel Pint
4650
run: ./vendor/bin/pint --test

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
"require": {
1212
"php": "^8.0",
1313
"ext-json": "*",
14-
"illuminate/queue": "^9.0",
14+
"illuminate/queue": "^9.0|^10.0",
1515
"php-amqplib/php-amqplib": "^3.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.3",
1919
"mockery/mockery": "^1.0",
2020
"laravel/horizon": "^5.0",
21-
"orchestra/testbench": "^7.0",
22-
"laravel/pint": "^1.2"
21+
"orchestra/testbench": "^7.0|^8.0",
22+
"laravel/pint": "^1.2",
23+
"laravel/framework": "^9.0|^10.0"
2324
},
2425
"autoload": {
2526
"psr-4": {

src/Console/ExchangeDeclareCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ class ExchangeDeclareCommand extends Command
1818
protected $description = 'Declare exchange';
1919

2020
/**
21-
* @param RabbitMQConnector $connector
22-
*
2321
* @throws Exception
2422
*/
2523
public function handle(RabbitMQConnector $connector): void

src/Console/ExchangeDeleteCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ class ExchangeDeleteCommand extends Command
1616
protected $description = 'Delete exchange';
1717

1818
/**
19-
* @param RabbitMQConnector $connector
20-
*
2119
* @throws Exception
2220
*/
2321
public function handle(RabbitMQConnector $connector): void

src/Console/QueueBindCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class QueueBindCommand extends Command
1717
protected $description = 'Bind queue to exchange';
1818

1919
/**
20-
* @param RabbitMQConnector $connector
21-
*
2220
* @throws Exception
2321
*/
2422
public function handle(RabbitMQConnector $connector): void

src/Console/QueueDeclareCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class QueueDeclareCommand extends Command
1919
protected $description = 'Declare queue';
2020

2121
/**
22-
* @param RabbitMQConnector $connector
23-
*
2422
* @throws Exception
2523
*/
2624
public function handle(RabbitMQConnector $connector): void

src/Console/QueueDeleteCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class QueueDeleteCommand extends Command
1717
protected $description = 'Delete queue';
1818

1919
/**
20-
* @param RabbitMQConnector $connector
21-
*
2220
* @throws Exception
2321
*/
2422
public function handle(RabbitMQConnector $connector): void

src/Console/QueuePurgeCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class QueuePurgeCommand extends Command
1919
protected $description = 'Purge all messages in queue';
2020

2121
/**
22-
* @param RabbitMQConnector $connector
23-
*
2422
* @throws Exception
2523
*/
2624
public function handle(RabbitMQConnector $connector): void

src/Consumer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function setPrefetchCount(int $value): void
6565
*
6666
* @param string $connectionName
6767
* @param string $queue
68-
* @param WorkerOptions $options
6968
* @return int
7069
*
7170
* @throws Throwable
@@ -181,10 +180,8 @@ function (AMQPMessage $message) use ($connection, $options, $connectionName, $qu
181180
/**
182181
* Determine if the daemon should process on this iteration.
183182
*
184-
* @param WorkerOptions $options
185183
* @param string $connectionName
186184
* @param string $queue
187-
* @return bool
188185
*/
189186
protected function daemonShouldRun(WorkerOptions $options, $connectionName, $queue): bool
190187
{

src/Horizon/Listeners/RabbitMQFailedEvent.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class RabbitMQFailedEvent
1919
/**
2020
* Create a new listener instance.
2121
*
22-
* @param Dispatcher $events
2322
* @return void
2423
*/
2524
public function __construct(Dispatcher $events)
@@ -29,9 +28,6 @@ public function __construct(Dispatcher $events)
2928

3029
/**
3130
* Handle the event.
32-
*
33-
* @param LaravelJobFailed $event
34-
* @return void
3531
*/
3632
public function handle(LaravelJobFailed $event): void
3733
{

0 commit comments

Comments
 (0)