diff --git a/system/src/Grav/Framework/Cache/Adapter/ChainCache.php b/system/src/Grav/Framework/Cache/Adapter/ChainCache.php index 75b3b64d8..eed108457 100644 --- a/system/src/Grav/Framework/Cache/Adapter/ChainCache.php +++ b/system/src/Grav/Framework/Cache/Adapter/ChainCache.php @@ -10,6 +10,7 @@ namespace Grav\Framework\Cache\Adapter; use Grav\Framework\Cache\AbstractCache; use Grav\Framework\Cache\CacheInterface; +use Grav\Framework\Cache\Exception\InvalidArgumentException; /** * Cache class for PSR-16 compatible "Simple Cache" implementation using chained cache adapters. @@ -32,19 +33,19 @@ class ChainCache extends AbstractCache * Chain Cache constructor. * @param array $caches * @param null|int|\DateInterval $defaultLifetime - * @throws \InvalidArgumentException + * @throws InvalidArgumentException */ public function __construct(array $caches, $defaultLifetime = null) { parent::__construct('', $defaultLifetime); if (!$caches) { - throw new \InvalidArgumentException('At least one cache must be specified'); + throw new InvalidArgumentException('At least one cache must be specified'); } foreach ($caches as $cache) { if (!$cache instanceof CacheInterface) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( sprintf( "The class '%s' does not implement the '%s' interface", get_class($cache), diff --git a/system/src/Grav/Framework/Cache/Adapter/FileCache.php b/system/src/Grav/Framework/Cache/Adapter/FileCache.php index 50f9f6c66..d703f6190 100644 --- a/system/src/Grav/Framework/Cache/Adapter/FileCache.php +++ b/system/src/Grav/Framework/Cache/Adapter/FileCache.php @@ -194,6 +194,7 @@ class FileCache extends AbstractCache /** * @internal + * @throws \ErrorException */ public static function throwError($type, $message, $file, $line) {