From ab6afe0111b25bd2d764bb807f086808ae7a5534 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 2 Apr 2024 17:13:35 +0200 Subject: fix: Fix new psalm errors from update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure about the SimpleContainer modification, let’s see what CI says about that. Signed-off-by: Côme Chilliet --- lib/private/DB/QueryBuilder/Literal.php | 5 +---- lib/private/DB/QueryBuilder/Parameter.php | 5 +---- lib/private/DB/QueryBuilder/QueryFunction.php | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'lib/private/DB/QueryBuilder') 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; } } -- cgit v1.2.3