Modernize code

This commit is contained in:
Fabien Potencier
2024-08-07 14:44:19 +02:00
parent 2be34fc0ce
commit 58e1d86158
+3 -5
View File
@@ -21,14 +21,12 @@ namespace Twig\Cache;
*/
final class ChainCache implements CacheInterface
{
private $caches;
/**
* @param iterable<CacheInterface> $caches The ordered list of caches used to store and fetch cached items
*/
public function __construct(iterable $caches)
{
$this->caches = $caches;
public function __construct(
private iterable $caches,
) {
}
public function generateKey(string $name, string $className): string