8000 [Cache] Declaratively declare/hide DoctrineProvider to avoid breaking… · symfony/cache@fd2f2af · GitHub
[go: up one dir, main page]

Skip to content

Commit fd2f2af

Browse files
Jean85nicolas-grekas
authored andcommitted
[Cache] Declaratively declare/hide DoctrineProvider to avoid breaking static analysis
1 parent 84a3a42 commit fd2f2af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DoctrineProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
use Psr\Cache\CacheItemPoolInterface;
1616
use Symfony\Contracts\Service\ResetInterface;
1717

18+
if (!class_exists(CacheProvider::class)) {
19+
return;
20+
}
21+
1822
/**
1923
* @author Nicolas Grekas <p@tchwork.com>
2024
*/

0 commit comments

Comments
 (0)
0