summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Exception/CacheException.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Exception/CacheException.php')
-rw-r--r--vendor/symfony/cache/Exception/CacheException.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/symfony/cache/Exception/CacheException.php b/vendor/symfony/cache/Exception/CacheException.php
index e87b2db8fe..d2e975b2bc 100644
--- a/vendor/symfony/cache/Exception/CacheException.php
+++ b/vendor/symfony/cache/Exception/CacheException.php
@@ -14,6 +14,12 @@ namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
use Psr\SimpleCache\CacheException as SimpleCacheInterface;
-class CacheException extends \Exception implements Psr6CacheInterface, SimpleCacheInterface
-{
+if (interface_exists(SimpleCacheInterface::class)) {
+ class CacheException extends \Exception implements Psr6CacheInterface, SimpleCacheInterface
+ {
+ }
+} else {
+ class CacheException extends \Exception implements Psr6CacheInterface
+ {
+ }
}