Skip to content

Commit 9dd5534

Browse files
authored
Fix #522: Fix SQS driver type error with custom value passed to queue/listen
1 parent 46b2eff commit 9dd5534

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: CHANGELOG.md

+1-1
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

Diff for: src/drivers/sqs/Command.php

+2
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)