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