[pkg-php-pear] Bug#1033788: Bug#1033788: php-symfony-cache: Conflict with PSR Cache

David Prévot david at tilapin.org
Sat Apr 1 10:26:19 BST 2023


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20230401/85f6dd13/attachment.sig>


More information about the pkg-php-pear mailing list