summaryrefslogtreecommitdiffstats
path: root/apps/testing/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 19:34:43 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 21:54:20 +0100
commit8edbfdb29173a97f6fd265bad234ec458b72bf40 (patch)
treedd44453cf41fae4d8453ce3738ae9c8dae57d619 /apps/testing/lib
parent13a787e2f5d22e4cd8204f4524ea3e2c4eba4d32 (diff)
downloadnextcloud-server-8edbfdb29173a97f6fd265bad234ec458b72bf40.tar.gz
nextcloud-server-8edbfdb29173a97f6fd265bad234ec458b72bf40.zip
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/lib')
-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(