mirror of
https://github.com/predis/predis.git
synced 2026-09-17 05:47:05 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b5fa92856 | |||
| 076a62e3d3 | |||
| 85dc1752b7 |
@@ -20,7 +20,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
|
||||||
redis-versions: ['3', '4', '5', '6', '7']
|
redis-versions: ['3', '4', '5', '6', '7']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
## v2.0.2 (2022-09-06)
|
||||||
|
|
||||||
|
- Fixed PHP 8.2 deprecation notice: Use of "static" in callables
|
||||||
|
|
||||||
## v2.0.1 (2022-09-04)
|
## v2.0.1 (2022-09-04)
|
||||||
|
|
||||||
- Added retry interval to `RedisCluster` with a default of `10ms`
|
- Added retry interval to `RedisCluster` with a default of `10ms`
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ use Predis\Transaction\MultiExec as MultiExecTransaction;
|
|||||||
*/
|
*/
|
||||||
class Client implements ClientInterface, \IteratorAggregate
|
class Client implements ClientInterface, \IteratorAggregate
|
||||||
{
|
{
|
||||||
const VERSION = '2.0.1';
|
const VERSION = '2.0.2';
|
||||||
|
|
||||||
/** @var OptionsInterface */
|
/** @var OptionsInterface */
|
||||||
private $options;
|
private $options;
|
||||||
|
|||||||
@@ -197,7 +197,14 @@ class KeyPrefixProcessor implements ProcessorInterface
|
|||||||
if ($command instanceof PrefixableCommandInterface) {
|
if ($command instanceof PrefixableCommandInterface) {
|
||||||
$command->prefixKeys($this->prefix);
|
$command->prefixKeys($this->prefix);
|
||||||
} elseif (isset($this->commands[$commandID = strtoupper($command->getId())])) {
|
} elseif (isset($this->commands[$commandID = strtoupper($command->getId())])) {
|
||||||
call_user_func($this->commands[$commandID], $command, $this->prefix);
|
$callable = $this->commands[$commandID];
|
||||||
|
|
||||||
|
if (is_string($callable) && strpos($callable, 'static::') === 0) {
|
||||||
|
$callable = explode('::', $this->commands[$commandID]);
|
||||||
|
$callable[0] = $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
call_user_func($callable, $command, $this->prefix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user