diff options
author | Jana Peper <jana.peper@nextcloud.com> | 2024-12-12 15:47:01 +0100 |
---|---|---|
committer | janepie <49834966+janepie@users.noreply.github.com> | 2024-12-18 18:32:34 +0100 |
commit | d87302c651dfb18d80856c07d7a16e9c97d68bb0 (patch) | |
tree | d5d91157e3cd1dc7031ad87e5774d2f8eace4e38 /lib | |
parent | 8042a82c64e6e73467f0f943fdadde97c837edc3 (diff) | |
download | nextcloud-server-d87302c651dfb18d80856c07d7a16e9c97d68bb0.tar.gz nextcloud-server-d87302c651dfb18d80856c07d7a16e9c97d68bb0.zip |
feat: add error flags for json_decode
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TaskProcessing/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index e263195d35e..8afc62a05d4 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -572,7 +572,7 @@ class Manager implements IManager { if ($json === '') { return []; } - return json_decode($json, true); + return json_decode($json, true, flags: JSON_THROW_ON_ERROR); } /** |