From 3fc7c0c2335a6ab6260aeeedb4a074b988fe22b8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 5 Dec 2020 21:58:26 +0100 Subject: [PATCH] try to fix static return --- DataStorage/Database/DataMapperAbstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 2d0c118a3..edf268aaf 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -336,11 +336,11 @@ class DataMapperAbstract implements DataMapperInterface * @param string[] $models Models to apply the conditional on * @param string $comparison Comparison operator * - * @return static + * @return string * * @since 1.0.0 */ - public static function withConditional(string $id, mixed $value, array $models = [], string $comparison = '=') : static + public static function withConditional(string $id, mixed $value, array $models = [], string $comparison = '=') : string { self::$conditionals[$id] = [ 'value' => $value, @@ -348,7 +348,7 @@ class DataMapperAbstract implements DataMapperInterface 'comparison' => $comparison, ]; - /** @var static */ + /** @var string */ return static::class; }