Skip to content

Commit 98ecc6c

Browse files
committed
Removed usage of deprecated getKeys in favor of keys() from phpredis
1 parent 78e22f1 commit 98ecc6c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Here are steps I took to migrate my project through all versions to PHP 8.1, may
2828

2929
## Before using this fork ⚠️
3030

31-
- Tests of CakePHP framework aren't refactored yet to support PHP 8. Main issue is old version of PHPUnit that is tightly coupled to framework's tests. Issue for fixing this situation is here: https://github.com/kamilwylegala/cakephp2-php8/issues/7
32-
- Due to lack of tests ☝️ - **you need to rely** on tests in your application after integrating with this fork.
31+
- ~~Tests of CakePHP framework aren't refactored yet to support PHP 8. Main issue is old version of PHPUnit that is tightly coupled to framework's tests. Issue for fixing this situation is here: https://github.com/kamilwylegala/cakephp2-php8/issues/7~~ Framework tests are migrated to PHPUnit 9.*. Github actions are running tests on PHP 8.0, 8.1.
32+
- ~~Due to lack of tests ☝️~~ - **you also need to rely** on tests in your application after integrating with this fork.
3333
- If after integration you spot any issues related to framework please let me know by creating an issue or pull request with fix.
3434

3535
## Installation
@@ -55,6 +55,11 @@ It means that composer will look at `master` branch of repository configured und
5555

5656
## Changelog
5757

58+
59+
### 2023-10-19
60+
61+
- Removed usage of deprecated `redis->getKeys()` in favor of `redis->keys()`.
62+
5863
### 2023-09-18
5964

6065
- Fix for `ShellDispatcher` where `null` was passed to `strpos` function.

lib/Cake/Cache/Engine/RedisEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function clear($check) {
187187
if ($check) {
188188
return true;
189189
}
190-
$keys = $this->_Redis->getKeys($this->settings['prefix'] . '*');
190+
$keys = $this->_Redis->keys($this->settings['prefix'] . '*');
191191
$this->_Redis->del($keys);
192192

193193
return true;

0 commit comments

Comments
 (0)