From a92e44bd6cc9fdf010ac3e3c88f1a998ebf377f2 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 7 Mar 2023 18:53:17 +0200 Subject: [PATCH] fix msg --- application/Espo/ORM/Query/Part/Expression.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/Espo/ORM/Query/Part/Expression.php b/application/Espo/ORM/Query/Part/Expression.php index 37a01596d1..196b1f9a1c 100644 --- a/application/Espo/ORM/Query/Part/Expression.php +++ b/application/Espo/ORM/Query/Part/Expression.php @@ -611,7 +611,7 @@ class Expression implements WhereItem public static function add(Expression|int|float ...$arguments): self { if (count($arguments) < 2) { - throw new RuntimeException("Too few arguments"); + throw new RuntimeException("Too few arguments."); } return self::composeFunction('ADD', ...$arguments); @@ -625,7 +625,7 @@ class Expression implements WhereItem public static function subtract(Expression|int|float ...$arguments): self { if (count($arguments) < 2) { - throw new RuntimeException("Too few arguments"); + throw new RuntimeException("Too few arguments."); } return self::composeFunction('SUB', ...$arguments); @@ -639,7 +639,7 @@ class Expression implements WhereItem public static function multiply(Expression|int|float ...$arguments): self { if (count($arguments) < 2) { - throw new RuntimeException("Too few arguments"); + throw new RuntimeException("Too few arguments."); } return self::composeFunction('MUL', ...$arguments); @@ -653,7 +653,7 @@ class Expression implements WhereItem public static function divide(Expression|int|float ...$arguments): self { if (count($arguments) < 2) { - throw new RuntimeException("Too few arguments"); + throw new RuntimeException("Too few arguments."); } return self::composeFunction('DIV', ...$arguments); @@ -667,7 +667,7 @@ class Expression implements WhereItem public static function modulo(Expression|int|float ...$arguments): self { if (count($arguments) < 2) { - throw new RuntimeException("Too few arguments"); + throw new RuntimeException("Too few arguments."); } return self::composeFunction('MOD', ...$arguments);