Skip to content

Commit

Permalink
修复php8.3废弃动态创建属性警告
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 19, 2024
1 parent c8ffad7 commit 11596f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/Client/Redis.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace EasySwoole\RedisPool\Client;

class Redis extends \EasySwoole\Redis\Redis
{
public $__lastPingTime = 0;
}
8 changes: 8 additions & 0 deletions src/Client/RedisCluster.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace EasySwoole\RedisPool\Client;

class RedisCluster extends \EasySwoole\Redis\RedisCluster
{
public $__lastPingTime = 0;
}
4 changes: 2 additions & 2 deletions src/_Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use EasySwoole\Pool\AbstractPool;
use EasySwoole\Redis\ClusterConfig;
use EasySwoole\Redis\Config;
use EasySwoole\Redis\Redis;
use EasySwoole\Redis\RedisCluster;
use EasySwoole\RedisPool\Client\Redis;
use EasySwoole\RedisPool\Client\RedisCluster;

class _Pool extends AbstractPool
{
Expand Down

0 comments on commit 11596f8

Please sign in to comment.