{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/21823","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/21823/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/21823/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/21823/events","html_url":"https://github.com/laravel/framework/issues/21823","id":268564376,"number":21823,"title":"Queue fails for array_key_exists()","user":{"login":"luizguilhermefr","id":6135939,"avatar_url":"https://avatars3.githubusercontent.com/u/6135939?v=4","gravatar_id":"","url":"https://api.github.com/users/luizguilhermefr","html_url":"https://github.com/luizguilhermefr","followers_url":"https://api.github.com/users/luizguilhermefr/followers","following_url":"https://api.github.com/users/luizguilhermefr/following{/other_user}","gists_url":"https://api.github.com/users/luizguilhermefr/gists{/gist_id}","starred_url":"https://api.github.com/users/luizguilhermefr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizguilhermefr/subscriptions","organizations_url":"https://api.github.com/users/luizguilhermefr/orgs","repos_url":"https://api.github.com/users/luizguilhermefr/repos","events_url":"https://api.github.com/users/luizguilhermefr/events{/privacy}","received_events_url":"https://api.github.com/users/luizguilhermefr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-25T22:01:23Z","updated_at":"2017-10-26T04:27:52Z","closed_at":null,"author_association":"NONE","body":"- Laravel Version: 5.5.19\r\n- PHP Version: 7.0.24\r\n- Database Driver & Version: predis\r\n- Redis Server 3.0.7\r\n\r\nI am trying to broadcast events using `redis` both for broadcast itself and as queue.\r\n\r\nHowever, when firing `event(new MyEvent($data));` or executing `php artisan queue:listen` I get:\r\n\r\n```\r\narray_key_exists() expects parameter 2 to be array, null given\r\n```\r\n\r\n**[Full trace here](https://pastebin.com/aZ3UNJ3c)**\r\n\r\nI have configured `config/queue.php` `connections` array with default configuration\r\n\r\n```php\r\n'redis' => [\r\n        'driver' => 'redis',\r\n        'connection' => 'default',\r\n        'queue' => 'default',\r\n       'retry_after' => 90,\r\n],\r\n```\r\n\r\nand in `config/database.php` I added:\r\n\r\n```php\r\n'redis' => [\r\n            'client' => 'predis',\r\n            'default' => [\r\n            'host' => env('REDIS_HOST', 'localhost'),\r\n            'password' => env('REDIS_PASSWORD', null),\r\n            'port' => env('REDIS_PORT', 6379),\r\n            'database' => 0,\r\n        ],\r\n ],\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/339547749","html_url":"https://github.com/laravel/framework/issues/21823#issuecomment-339547749","issue_url":"https://api.github.com/repos/laravel/framework/issues/21823","id":339547749,"user":{"login":"sisve","id":748375,"avatar_url":"https://avatars2.githubusercontent.com/u/748375?v=4","gravatar_id":"","url":"https://api.github.com/users/sisve","html_url":"https://github.com/sisve","followers_url":"https://api.github.com/users/sisve/followers","following_url":"https://api.github.com/users/sisve/following{/other_user}","gists_url":"https://api.github.com/users/sisve/gists{/gist_id}","starred_url":"https://api.github.com/users/sisve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisve/subscriptions","organizations_url":"https://api.github.com/users/sisve/orgs","repos_url":"https://api.github.com/users/sisve/repos","events_url":"https://api.github.com/users/sisve/events{/privacy}","received_events_url":"https://api.github.com/users/sisve/received_events","type":"User","site_admin":false},"created_at":"2017-10-26T04:27:52Z","updated_at":"2017-10-26T04:27:52Z","author_association":"CONTRIBUTOR","body":"1. What is the value of $config in [RedisServiceProvider::register](https://github.com/laravel/framework/blob/v5.5.19/src/Illuminate/Redis/RedisServiceProvider.php#L27)?\r\n2. Does the error occur if you only use redis as a database?\r\n3. Does the error occur if you only use redis as a queue driver?\r\n4. Do you have a cached configuration, and if so, have you rebuilt it after your changes with `php artisan config:cache`?"}}
{"actor":{"display_login":"sisve"}}