compwright / php-session

Standalone session implementation that does not rely on the PHP session module or the $_SESSION global, ideal for Swoole or ReactPHP applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psr/simple-cache v3

yani opened this issue · comments

commented

I'm trying to use the package in a project that already uses psr/simple-cache v3. For me personally it isn't much of a problem as I fork for the time being.

  Problem 1
    - Root composer.json requires compwright/php-session ^1.2 -> satisfiable by compwright/php-session[1.2.0, 1.2.1, 1.2.2, 1.2.3].
    - compwright/php-session[1.2.0, ..., 1.2.3] require psr/simple-cache ^1 -> found psr/simple-cache[1.0.0, 1.0.1] but it conflicts with your root composer.json require (^3.0).

I would be nice to upgrade this package to v3 but I don't know how easy an upgrade would be.

After updating psr/simple-cache:

   DEPRECATED  Return type of Compwright\PhpSession\Handlers\Psr16Handler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor\compwright\php-session\src\Handlers\Psr16Handler.php on line 54.


   DEPRECATED  Return type of Compwright\PhpSession\Handlers\Psr16Handler::gc($max_lifetime): bool should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor\compwright\php-session\src\Handlers\Psr16Handler.php on line 97.

Fixed in v1.2.4

@yani 1.2.4 upgrades dependencies, however it is evident that more work is needed.

commented

@compwright Yeah I was also looking into it and odan/cache:0.5.0 requires psr/simple-cache:1.0 and has no update yet.

@yani fixed in v2.0.0

By the way thank you for using this library! I'd love to hear more about your use case, and how it goes.

commented

I'll implement v2 and play around with it :) Thanks for updating