diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 23c911ada..2d0c118a3 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 string + * @return static * * @since 1.0.0 */ - public static function withConditional(string $id, mixed $value, array $models = [], string $comparison = '=') : string + public static function withConditional(string $id, mixed $value, array $models = [], string $comparison = '=') : static { self::$conditionals[$id] = [ 'value' => $value,