From 7f73ee0764b0b00e7235a7f6b017cc071cdc0fe7 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 13 Feb 2017 18:03:35 -0600 Subject: Add missing PHPDoc and properly throw exception Signed-off-by: Morris Jobke --- lib/public/Files/Storage.php | 1 + lib/public/Files/Storage/ILockingStorage.php | 1 + 2 files changed, 2 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php index cf67879908c..1532c84b621 100644 --- a/lib/public/Files/Storage.php +++ b/lib/public/Files/Storage.php @@ -425,6 +425,7 @@ interface Storage extends IStorage { * @param string $path The path of the file to acquire the lock for * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE * @param \OCP\Lock\ILockingProvider $provider + * @throws \OCP\Lock\LockedException * @since 8.1.0 */ public function releaseLock($path, $type, ILockingProvider $provider); diff --git a/lib/public/Files/Storage/ILockingStorage.php b/lib/public/Files/Storage/ILockingStorage.php index 635c607537f..ac61e9a062e 100644 --- a/lib/public/Files/Storage/ILockingStorage.php +++ b/lib/public/Files/Storage/ILockingStorage.php @@ -46,6 +46,7 @@ interface ILockingStorage { * @param string $path The path of the file to acquire the lock for * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE * @param \OCP\Lock\ILockingProvider $provider + * @throws \OCP\Lock\LockedException * @since 9.0.0 */ public function releaseLock($path, $type, ILockingProvider $provider); -- cgit v1.2.3