Refactor cryptography handling and improve test coverage

This commit is contained in:
netkas 2024-10-24 13:55:21 -04:00
parent 26593d37e4
commit 0f5c8b40e2
18 changed files with 66 additions and 30 deletions

View file

@ -43,7 +43,7 @@ class Utilities
}
catch(\JsonException $e)
{
throw new \RuntimeException("Failed to encode json input", $e);
throw new InvalidArgumentException("Failed to encode json input", $e);
}
}