Fix various code.

This commit is contained in:
James Cole
2025-05-27 17:06:15 +02:00
parent d8f512ca3a
commit 2cb14f6b72
123 changed files with 581 additions and 500 deletions

View File

@@ -29,6 +29,8 @@ use Illuminate\Support\Facades\Validator;
use Closure;
use JsonException;
use function Safe\json_decode;
/**
* Class IsValidBulkClause
*/
@@ -65,7 +67,7 @@ class IsValidBulkClause implements ValidationRule
private function basicValidation(string $value): bool
{
try {
$array = \Safe\json_decode($value, true, 8, JSON_THROW_ON_ERROR);
$array = json_decode($value, true, 8, JSON_THROW_ON_ERROR);
} catch (JsonException) {
$this->error = (string) trans('validation.json');