matthiasmullie / scrapbook

PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.
https://www.scrapbook.cash
MIT License
315 stars 27 forks source link

PHP 8.4 deprecation messages #57

Open liviuconcioiu opened 4 weeks ago

liviuconcioiu commented 4 weeks ago

Hi,

I've got those deprecation messages on PHP 8.4.

1 test triggered 5 PHP deprecations:

1) \vendor\matthiasmullie\scrapbook\src\Adapters\MemoryStore.php:33
MatthiasMullie\Scrapbook\Adapters\MemoryStore::__construct(): Implicitly marking parameter $limit as nullable is deprecated, the explicit nullable type must be used instead

2) \vendor\matthiasmullie\scrapbook\src\Adapters\MemoryStore.php:63
MatthiasMullie\Scrapbook\Adapters\MemoryStore::getMulti(): Implicitly marking parameter $tokens as nullable is deprecated, the explicit nullable type must be used instead

3) \vendor\matthiasmullie\scrapbook\src\KeyValueStore.php:46
MatthiasMullie\Scrapbook\KeyValueStore::getMulti(): Implicitly marking parameter $tokens as nullable is deprecated, the explicit nullable type must be used instead

4) \vendor\matthiasmullie\scrapbook\src\Psr16\SimpleCache.php:42
MatthiasMullie\Scrapbook\Psr16\SimpleCache::set(): Implicitly marking parameter $ttl as nullable is deprecated, the explicit nullable type must be used instead

5) \vendor\matthiasmullie\scrapbook\src\Psr16\SimpleCache.php:86
MatthiasMullie\Scrapbook\Psr16\SimpleCache::setMultiple(): Implicitly marking parameter $ttl as nullable is deprecated, the explicit nullable type must be used instead