beyondcode / beyondcode/laravel-self-diagnosis

Error when use PHPRedis

Open
#68 0 comments 5 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.