In the (non-official) PSR integration tests are checks for iterables with a non-empty-string cache key 0. Internal PHP type juggling converts integerish strings to int which leads to a type conflict when passing these values to our internal assertion.
Therefore, this patch provides compatibility for integer keys in methods consuming iterable keys either in key-value or key-only combination.
Description
In the (non-official) PSR integration tests are checks for iterables with a non-empty-string cache key
0
. Internal PHP type juggling converts integerish strings toint
which leads to a type conflict when passing these values to our internal assertion. Therefore, this patch provides compatibility for integer keys in methods consuming iterable keys either in key-value or key-only combination.Ref: https://github.com/php-cache/integration-tests/blob/824633c9547dc3c7ac5faeca03dd82939cdeb73c/src/SimpleCacheTest.php#L258-L267