beyondcode / beyondcode/laravel-self-diagnosis
Error when use PHPRedis
- Dominant language
- PHP
- Stars
- 1.5k
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
I am using `phpredis` driver and getting multiple errors on `RedisCanBeAccessed` check.
When `phpredis` is used as a Redis driver:
1. `Redis` facade should not be used in the code, it does not exist at all
2. $connection->connect() is redundant for phpredis driver and throws error "Redis::connect() expects at least 1 parameter, 0 given"
Contributor guide
Research direction
Locate the RedisCanBeAccessed check and trace how it handles the phpredis driver. Verify the check without using the Redis facade and without calling connect() with no arguments; add or update coverage for the reported errors if the repository provides a relevant test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100