1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-11 19:14:09 +02:00
Files
php-rss-bridge/caches/NullCache.php
Marcin Morawski a2334838a6 Fix deprecations (#4636)
* Fix PHP 8.4 deprecation

Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead

* [github workflow] Add additional php versions
2025-08-04 00:55:50 +02:00

28 lines
405 B
PHP

<?php
declare(strict_types=1);
class NullCache implements CacheInterface
{
public function get(string $key, $default = null)
{
return $default;
}
public function set(string $key, $value, ?int $ttl = null): void
{
}
public function delete(string $key): void
{
}
public function clear(): void
{
}
public function prune(): void
{
}
}