Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 21:34:43 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 23:54:20 +0300
commit8edbfdb29173a97f6fd265bad234ec458b72bf40 (patch)
treedd44453cf41fae4d8453ce3738ae9c8dae57d619 /apps/testing
parent13a787e2f5d22e4cd8204f4524ea3e2c4eba4d32 (diff)
Made locking providers strict
* Added typehints * Added return types * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/testing')
-rw-r--r--apps/testing/lib/Locking/FakeDBLockingProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/testing/lib/Locking/FakeDBLockingProvider.php b/apps/testing/lib/Locking/FakeDBLockingProvider.php
index 174cc2ec7fe..f656150da3b 100644
--- a/apps/testing/lib/Locking/FakeDBLockingProvider.php
+++ b/apps/testing/lib/Locking/FakeDBLockingProvider.php
@@ -51,7 +51,7 @@ class FakeDBLockingProvider extends \OC\Lock\DBLockingProvider {
* @param string $path
* @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE
*/
- public function releaseLock($path, $type) {
+ public function releaseLock(string $path, int $type) {
// we DONT keep shared locks till the end of the request
if ($type === self::LOCK_SHARED) {
$this->db->executeUpdate(