Skip to content

Commit 3efc50f

Browse files
authored
Merge branch 'master' into patch-1
2 parents 46ed009 + 8f4c350 commit 3efc50f

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Yii2 Queue Extension Change Log
44
2.3.8 under development
55
-----------------------
66

7-
- no changes in this release.
7+
- Bug #522: Fix SQS driver type error with custom value passed to `queue/listen` (flaviovs)
88

99

1010
2.3.7 April 29, 2024

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ help: ## Display help information
33

44
build: ## Build an image from a docker-compose file. Params: {{ v=5.6 }}. Default latest PHP 5.6
55
@cp -n .env.example .env
6-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose up -d --build
6+
PHP_VERSION=$(filter-out $@,$(v)) docker compose up -d --build
77

88
test: ## Run tests. Params: {{ v=5.6 }}. Default latest PHP 5.6
9-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php
10-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php vendor/bin/phpunit --colors=always -v --debug
9+
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php
10+
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php vendor/bin/phpunit --colors=always -v --debug
1111
make down
1212

1313
down: ## Stop and remove containers, networks
14-
docker-compose down
14+
docker compose down
1515

1616
benchmark: ## Run benchmark. Params: {{ v=5.6 }}. Default latest PHP 5.6
17-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php
18-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php tests/yii benchmark/waiting
17+
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php
18+
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php tests/yii benchmark/waiting
1919
make down
2020

2121
sh: ## Enter the container with the application
2222
docker exec -it yii2-queue-php bash
2323

2424
check-cs:
25-
docker-compose build php72
26-
docker-compose run php72 php-cs-fixer fix --diff --dry-run
27-
docker-compose down
25+
docker compose build php72
26+
docker compose run php72 php-cs-fixer fix --diff --dry-run
27+
docker compose down
2828

2929
clean:
30-
docker-compose down
30+
docker compose down
3131
rm -rf tests/runtime/*
3232
rm -f .php_cs.cache
3333
rm -rf composer.lock

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yiisoft/yii2-queue",
3-
"description": "Yii2 Queue Extension which supported DB, Redis, RabbitMQ, Beanstalk, SQS and Gearman",
3+
"description": "Yii2 Queue Extension which supports queues based on DB, Redis, RabbitMQ, Beanstalk, SQS, and Gearman",
44
"type": "yii2-extension",
55
"keywords": ["yii", "queue", "async", "gii", "db", "redis", "rabbitmq", "beanstalk", "gearman", "sqs"],
66
"license": "BSD-3-Clause",

src/drivers/sqs/Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function actionListen($timeout = 3)
4848
if (!is_numeric($timeout)) {
4949
throw new Exception('Timeout must be numeric.');
5050
}
51+
$timeout = (int) $timeout;
52+
5153
if ($timeout < 1 || $timeout > 20) {
5254
throw new Exception('Timeout must be between 1 and 20');
5355
}

0 commit comments

Comments
 (0)