From 8edbfdb29173a97f6fd265bad234ec458b72bf40 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 16 Jan 2018 19:34:43 +0100 Subject: Made locking providers strict * Added typehints * Added return types * Made strict Signed-off-by: Roeland Jago Douma --- lib/public/Lock/ILockingProvider.php | 9 +++++---- lib/public/Lock/LockedException.php | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/public') diff --git a/lib/public/Lock/ILockingProvider.php b/lib/public/Lock/ILockingProvider.php index 6fe9894b7b5..32e76c72531 100644 --- a/lib/public/Lock/ILockingProvider.php +++ b/lib/public/Lock/ILockingProvider.php @@ -1,4 +1,5 @@ path = $path; } @@ -57,7 +58,7 @@ class LockedException extends \Exception { * @return string * @since 8.1.0 */ - public function getPath() { + public function getPath(): string { return $this->path; } } -- cgit v1.2.3