Control: -1 unreproducible

Hi,

Thank you for your interest in reporting a bug.

Le 01/04/2023 à 11:01, DorianCoding a écrit :
Package: php-symfony-cache
Version: 5.4.21+dfsg-1
[…]
*** Reporter, please consider answering these questions, where appropriate ***

It would have been nice to actual answer these questions.

Psr cache and Symfony cache are in conflict and returns the following error:

Got error 'PHP message: PHP Fatal error:  Declaration of 
Symfony\\Component\\Cache\\CacheItem::get() must be compatible with 
Psr\\Cache\\CacheItemInterface::get(): mixed in 
/usr/share/php/Symfony/Component/Cache/CacheItem.php on line 4
[…]
ii  php-psr-cache                      1.0.1-3

Yet, php-psr-cache in version 1 does not enforce “get(): mixed”.

-------
$ grep -B3 'get();' /usr/share/php/Psr/Cache/CacheItemInterface.php
     * @return mixed
* The value corresponding to this cache item's key, or null if not found.
     */
    public function get();
--------

psr/cache version 3 does enforce the output type, so maybe are you using it from a third party code. That’s the kind of information needed in order to understand and reproduce your issue.

Regards,

taffit

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to