@@ -85,7 +85,7 @@ adapter (template) they use by using the ``app`` and ``system`` key like:
8585 // config/packages/cache.php
8686 use Symfony\Config\FrameworkConfig;
8787
88- return static function (FrameworkConfig $framework) {
88+ return static function (FrameworkConfig $framework): void {
8989 $framework->cache()
9090 ->app('cache.adapter.filesystem')
9191 ->system('cache.adapter.system')
@@ -163,7 +163,7 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
163163 // config/packages/cache.php
164164 use Symfony\Config\FrameworkConfig;
165165
166- return static function (FrameworkConfig $framework) {
166+ return static function (FrameworkConfig $framework): void {
167167 $framework->cache()
168168 // Only used with cache.adapter.filesystem
169169 ->directory('%kernel.cache_dir%/pools')
@@ -264,7 +264,7 @@ You can also create more customized pools:
264264 // config/packages/cache.php
265265 use Symfony\Config\FrameworkConfig;
266266
267- return static function (FrameworkConfig $framework) {
267+ return static function (FrameworkConfig $framework): void {
268268 $cache = $framework->cache();
269269 $cache->defaultMemcachedProvider('memcached://localhost');
270270
@@ -444,7 +444,7 @@ and use that when configuring the pool.
444444 use Symfony\Component\DependencyInjection\ContainerBuilder;
445445 use Symfony\Config\FrameworkConfig;
446446
447- return static function (ContainerBuilder $container, FrameworkConfig $framework) {
447+ return static function (ContainerBuilder $container, FrameworkConfig $framework): void {
448448 $framework->cache()
449449 ->pool('cache.my_redis')
450450 ->adapters(['cache.adapter.redis'])
@@ -524,7 +524,7 @@ Symfony stores the item automatically in all the missing pools.
524524 // config/packages/cache.php
525525 use Symfony\Config\FrameworkConfig;
526526
527- return static function (FrameworkConfig $framework) {
527+ return static function (FrameworkConfig $framework): void {
528528 $framework->cache()
529529 ->pool('my_cache_pool')
530530 ->defaultLifetime(31536000) // One year
@@ -616,7 +616,7 @@ to enable this feature. This could be added by using the following configuration
616616 // config/packages/cache.php
617617 use Symfony\Config\FrameworkConfig;
618618
619- return static function (FrameworkConfig $framework) {
619+ return static function (FrameworkConfig $framework): void {
620620 $framework->cache()
621621 ->pool('my_cache_pool')
622622 ->tags(true)
@@ -670,7 +670,7 @@ achieved by specifying the adapter.
670670 // config/packages/cache.php
671671 use Symfony\Config\FrameworkConfig;
672672
673- return static function (FrameworkConfig $framework) {
673+ return static function (FrameworkConfig $framework): void {
674674 $framework->cache()
675675 ->pool('my_cache_pool')
676676 ->tags('tag_pool')
0 commit comments