From 93ba6ce24f49f2e0050e7a42a9dbf4c8040b012b Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sat, 10 Feb 2018 21:06:13 -0800 Subject: [PATCH] Change `@return Exception` to `@throws Exception` In the Dba storage adapter. Noticed via static analysis --- src/Storage/Adapter/Dba.php | 2 +- src/Storage/Adapter/Filesystem.php | 2 +- src/Storage/Adapter/MemcacheOptions.php | 2 +- src/Storage/Adapter/Memcached.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Storage/Adapter/Dba.php b/src/Storage/Adapter/Dba.php index 12436b867..3141be886 100644 --- a/src/Storage/Adapter/Dba.php +++ b/src/Storage/Adapter/Dba.php @@ -303,7 +303,7 @@ public function getIterator() * Optimize the storage * * @return bool - * @return Exception\RuntimeException + * @throws Exception\RuntimeException */ public function optimize() { diff --git a/src/Storage/Adapter/Filesystem.php b/src/Storage/Adapter/Filesystem.php index 2eaedad5d..1a5d37f31 100644 --- a/src/Storage/Adapter/Filesystem.php +++ b/src/Storage/Adapter/Filesystem.php @@ -441,7 +441,7 @@ public function getIterator() * Optimize the storage * * @return bool - * @return Exception\RuntimeException + * @throws Exception\RuntimeException */ public function optimize() { diff --git a/src/Storage/Adapter/MemcacheOptions.php b/src/Storage/Adapter/MemcacheOptions.php index 2c06f3a5c..60144db64 100644 --- a/src/Storage/Adapter/MemcacheOptions.php +++ b/src/Storage/Adapter/MemcacheOptions.php @@ -241,7 +241,7 @@ public function setAutoCompressMinSavings($minSavings) /** * Get compress min savings * - * @return Exception\RuntimeException + * @throws Exception\RuntimeException */ public function getAutoCompressMinSavings() { diff --git a/src/Storage/Adapter/Memcached.php b/src/Storage/Adapter/Memcached.php index 37ca73a53..a9ce65c6d 100644 --- a/src/Storage/Adapter/Memcached.php +++ b/src/Storage/Adapter/Memcached.php @@ -630,7 +630,7 @@ protected function expirationTime() * Generate exception based of memcached result code * * @param int $code - * @return Exception\RuntimeException + * @throws Exception\RuntimeException * @throws Exception\InvalidArgumentException On success code */ protected function getExceptionByResultCode($code)