mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Replace methods with safe variants. Let's see how this works out.
This commit is contained in:
@@ -40,7 +40,7 @@ class IsValidPositiveAmount implements ValidationRule
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$fail('validation.numeric')->translate();
|
||||
$message = sprintf('IsValidPositiveAmount: "%s" is not a number.', json_encode($value));
|
||||
$message = sprintf('IsValidPositiveAmount: "%s" is not a number.', \Safe\json_encode($value));
|
||||
Log::debug($message);
|
||||
Log::channel('audit')->info($message);
|
||||
|
||||
|
Reference in New Issue
Block a user