bug A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.1k
- Forks
- 285
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
enviroment: PHP7, yii2 basic.
I config "redis" to using as queue.
In file: config/console and config/web
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => '192.168.146.252',
'port' => 8002,
'database' => 0,
'password' => '123456a@',
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
After I run: php yii queue/listen
I see "A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with php yii queue/listen using the Redis configuration shown, then inspect vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php at line 107. Compare the values involved in the Redis queue listener and determine what condition produces the warning; done means the listener runs without the non-numeric warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, redis
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100