aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-04-02 17:13:35 +0200
committerRichard Steinmetz <richard@steinmetz.cloud>2024-04-08 11:29:09 +0200
commitab6afe0111b25bd2d764bb807f086808ae7a5534 (patch)
treedaa4749047458d69e04da2d8e1fef348ceed6630 /lib/private/DB/QueryBuilder
parent9ef70f0c4e94bd32d6b7732d4735c561901cb3df (diff)
downloadnextcloud-server-ab6afe0111b25bd2d764bb807f086808ae7a5534.tar.gz
nextcloud-server-ab6afe0111b25bd2d764bb807f086808ae7a5534.zip
fix: Fix new psalm errors from update
Not sure about the SimpleContainer modification, let’s see what CI says about that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-rw-r--r--lib/private/DB/QueryBuilder/Literal.php5
-rw-r--r--lib/private/DB/QueryBuilder/Parameter.php5
-rw-r--r--lib/private/DB/QueryBuilder/QueryFunction.php5
3 files changed, 3 insertions, 12 deletions
diff --git a/lib/private/DB/QueryBuilder/Literal.php b/lib/private/DB/QueryBuilder/Literal.php
index b4e8a36b86f..321a836abc7 100644
--- a/lib/private/DB/QueryBuilder/Literal.php
+++ b/lib/private/DB/QueryBuilder/Literal.php
@@ -32,10 +32,7 @@ class Literal implements ILiteral {
$this->literal = $literal;
}
- /**
- * @return string
- */
- public function __toString() {
+ public function __toString(): string {
return (string) $this->literal;
}
}
diff --git a/lib/private/DB/QueryBuilder/Parameter.php b/lib/private/DB/QueryBuilder/Parameter.php
index b6cfa844e01..148580447bd 100644
--- a/lib/private/DB/QueryBuilder/Parameter.php
+++ b/lib/private/DB/QueryBuilder/Parameter.php
@@ -31,10 +31,7 @@ class Parameter implements IParameter {
$this->name = $name;
}
- /**
- * @return string
- */
- public function __toString() {
+ public function __toString(): string {
return (string) $this->name;
}
}
diff --git a/lib/private/DB/QueryBuilder/QueryFunction.php b/lib/private/DB/QueryBuilder/QueryFunction.php
index 41798f233cd..c0fd38150ef 100644
--- a/lib/private/DB/QueryBuilder/QueryFunction.php
+++ b/lib/private/DB/QueryBuilder/QueryFunction.php
@@ -31,10 +31,7 @@ class QueryFunction implements IQueryFunction {
$this->function = $function;
}
- /**
- * @return string
- */
- public function __toString() {
+ public function __toString(): string {
return (string) $this->function;
}
}