fixes #700: Psr16Adapter::deleteMultiple converts $keys to an array.#703
Conversation
…an array. The internal Psr\Cache\CacheItemPoolInterface::deleteItems requires an array as argument. Some popular tools like PhpSpreadsheet use a Traversable instead.
|
Hello, I'm gonna review & merge this PR by the end of day, thanks you. Cheers, |
|
Can you please check the PSr16 specs please, in my memories |
|
Hi,
Maybe |
…sable $keys in an array The internal array_map function can only be used with native arrays.
|
Hi, I just fixed the two branches (master, v6): I also fixed |
|
Thanks, I'll push a new release tomorrow. |
|
Many Thanks @Geolim4, I appreciate your fast reaction, as the phpfastcache lib is a central building block of our application! |
|
You're welcome, thanks you too for your contribution ! |
The internal Psr\Cache\CacheItemPoolInterface::deleteItems requires an array as argument. Some popular tools like PhpSpreadsheet use a Traversable instead.
Proposed changes
deleteMultiple() should convert the
$keysargument to an array, as the underlyingCacheItemPoolInterface::deleteItems()method takes arrays only.Types of changes
Agreement
I have read the CONTRIBUTING and CODING GUIDELINE docs
Further comments
This issue also appears in the v6 branch: I will commit another pull request to fix it in the 6.x version, too.