fix msg
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user