8000 Update cache.rst · symfony/symfony-docs@05a70ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 05a70ae

Browse files
tacmanOskarStark
authored andcommitted
Update cache.rst
add 'private' for php 8 constructor
1 parent aba4834 commit 05a70ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ with either :class:`Symfony\\Contracts\\Cache\\CacheInterface` or
315315
}
316316

317317
// in a service
318-
public function __construct(CacheInterface $customThingCache)
318+
public function __construct(private CacheInterface $customThingCache)
319319
{
320320
// ...
321321
}

0 commit comments

Comments
 (0)
0