open-smf / connection-pool

A common connection pool based on Swoole is usually used as a database connection pool.
MIT License
222 stars 34 forks source link

php 8.2 Error #17

Closed YvesHo0968 closed 1 year ago

YvesHo0968 commented 1 year ago

0 [8192]ErrorException in ConnectionPool.php line 264

Creation of dynamic property think\cache\driver\Redis::$__lat is deprecated } } }); }

protected function createConnection()
{
    $this->connectionCount++;
    $connection = $this->connector->connect($this->connectionConfig);
    $connection->{static::KEY_LAST_ACTIVE_TIME} = time();
    return $connection;
}

protected function removeConnection($connection)
{
    $this->connectionCount--;
    Coroutine::create(function () use ($connection) {
        try {
            $this->connector->disconnect($connection);

PHP 8.2弃用了动态声明的类属性

hhxsv5 commented 1 year ago

composer require "open-smf/connection-pool:~2.0"