mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 12:57:05 +00:00
Modernize code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user