This commit is contained in:
Yuri Kuznetsov
2023-03-07 18:53:17 +02:00
parent 369f3ba9a5
commit a92e44bd6c
@@ -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);