Skip to content

Commit 2a6cd8b

Browse files
committed
minor #18445 Update cache.rst (tacman)
This PR was submitted for the 6.3 branch but it was merged into the 6.2 branch instead. Discussion ---------- Update cache.rst add 'private' for php 8 constructor <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 05a70ae Update cache.rst
2 parents aba4834 + 05a70ae commit 2a6cd8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache.rst

+1-1
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)