Skip to content

Bug: Redis::connect(): Passing null to parameter #3 ($timeout) of type float is deprecated #6512

@JasonSanYe

Description

@JasonSanYe

PHP Version

8.1

CodeIgniter4 Version

4.2.6

CodeIgniter4 Installation Method

Composer (as dependency to an existing project)

Which operating systems have you tested for this bug?

macOS

Which server did you use?

fpm-fcgi

Database

No response

What happened?

将session 设置redis

php7.4正常

php8.1报错:Redis::connect(): Passing null to parameter #3 ($timeout) of type float is deprecated

image

Steps to Reproduce

将session 设置redis

php8.1 下

Expected Output

将session 设置redis

php8.1 下

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions