summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-12 23:43:29 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-06-13 11:56:43 +0200
commit624d191ef678d2f19a6d62e38f589c507ce05e72 (patch)
treefd77c791d001b29f88f7674bce99f96649db6450 /lib/private
parented25fc3440f4d66539b2aa512f47ad12b03b7533 (diff)
downloadnextcloud-server-624d191ef678d2f19a6d62e38f589c507ce05e72.tar.gz
nextcloud-server-624d191ef678d2f19a6d62e38f589c507ce05e72.zip
Fix wrong hint about missing indexes
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/DB/MissingIndexInformation.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/MissingIndexInformation.php b/lib/private/DB/MissingIndexInformation.php
index d6e40e0b09e..0cb9852d0d4 100644
--- a/lib/private/DB/MissingIndexInformation.php
+++ b/lib/private/DB/MissingIndexInformation.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Morris Jobke <hey@morrisjobke.de>
*
@@ -21,19 +22,18 @@
namespace OC\DB;
-
class MissingIndexInformation {
private $listOfMissingIndexes = [];
- public function addHintForMissingSubject($tableName, $indexName) {
+ public function addHintForMissingSubject(string $tableName, string $indexName) {
$this->listOfMissingIndexes[] = [
'tableName' => $tableName,
'indexName' => $indexName
];
}
- public function getListOfMissingIndexes() {
+ public function getListOfMissingIndexes(): array {
return $this->listOfMissingIndexes;
}
} \ No newline at end of file