Skip to content

Commit a333efe

Browse files
committed
php 8 support
1 parent 3a39d35 commit a333efe

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.3, 7.4]
16+
php: [7.3, 7.4, 8.0]
1717
stability: [prefer-lowest, prefer-stable]
1818

1919
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
@@ -43,6 +43,7 @@ jobs:
4343
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4444

4545
- name: Run PHP CS Fixer
46+
if: ${{ matrix.php != 8.0 }}
4647
run: vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --dry-run --diff --verbose
4748

4849
- name: Execute tests

CHANGELOG-11x.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased](https://github.com/vyuldashev/laravel-queue-rabbitmq/compare/v11.1.2...master)
5+
## [Unreleased](https://github.com/vyuldashev/laravel-queue-rabbitmq/compare/v11.2.0...master)
6+
7+
## [11.2.0 (2021-03-16)](https://github.com/vyuldashev/laravel-queue-rabbitmq/compare/v11.1.2...v11.2.0)
8+
9+
- PHP 8 support
10+
- Fix missing rest option in `php artisan rabbitmq:consume` command [#416](https://github.com/vyuldashev/laravel-queue-rabbitmq/pull/416)
611

712
## [11.1.2 (2021-03-07)](https://github.com/vyuldashev/laravel-queue-rabbitmq/compare/v11.1.1...v11.1.2)
813

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.3",
12+
"php": "^7.3|^8.0",
1313
"ext-json": "*",
1414
"illuminate/queue": "^8.0",
15-
"php-amqplib/php-amqplib": "^2.12"
15+
"php-amqplib/php-amqplib": "^2.12|^3.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.3",

tests/Functional/RabbitMQQueueTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function testExchangeType(): void
7070
$queue = $this->connection();
7171
$this->assertSame(AMQPExchangeType::DIRECT, $this->callMethod($queue, 'getExchangeType'));
7272
$this->assertSame(AMQPExchangeType::DIRECT, $this->callMethod($queue, 'getExchangeType', ['']));
73-
$this->assertSame(AMQPExchangeType::DIRECT, $this->callMethod($queue, 'getExchangeType', ['test']));
7473
$this->assertSame(AMQPExchangeType::TOPIC, $this->callMethod($queue, 'getExchangeType', ['topic']));
7574

7675
$queue = $this->connection('rabbitmq-with-options');

0 commit comments

Comments
 (0)