simple-cache
simple-cache copied to clipboard
Corrected type hints
Per this thread, I understand that tool support is not a concern or priority for the FIG, so I don't expect this PR will be merged - a replacement package with corrected type-hints has been published and can be installed as mindplay/simple-cache
now.
+1
The return type of return (array) $result; (array) is incompatible with the return type declared by the interface Psr\SimpleCache\CacheInterface::getMultiple of type Psr\SimpleCache\iterable.
I'm also getting this error. Any chance this will be merged? If I require mindplay/simple-cache then anything using psr/simple-cache will break making the whole spec kinda useless.
If I require mindplay/simple-cache then anything using psr/simple-cache will break
It won't - my package replaces the real package and is otherwise identical to it.
But yeah, it would be nice if we didn't need this crappy work-around.
@michaelcullum @dragoonis Is this PR mergeable ?? Thanks you :)
We should revisit the use of strong types, and flexible types, once the conversation around #13 is resolved. Afterward then we'll know what is and isn't possible, in terms off strict and flexible typing.
Does this makes still sense in the light of #24 + #25?