This commit is contained in:
2023-12-19 14:51:13 +08:00
parent 6621c5f247
commit 21aca8b642
13 changed files with 22 additions and 35 deletions
+1 -3
View File
@@ -4,8 +4,6 @@
namespace validator;
use Exception;
/**
* Class RoundValidator
* @package validator
@@ -19,7 +17,7 @@ class RoundValidator extends BaseValidator
* @return bool
* @throws
*/
public function trigger(string $field, mixed $value): bool
public function trigger(mixed $value): bool
{
return round($value, $this->value) == $value;
}