Skip to content

Commit 085b709

Browse files
committed
BUGFIX: Do not use PHP 7.3s JSON_THROW_ON_ERROR
1 parent 3f2210d commit 085b709

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Command/SearchCommandController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function createContext(string $dimensions = null): Context
182182
];
183183

184184
if ($dimensions !== null) {
185-
$contextConfiguration['dimensions'] = json_decode($dimensions, true, 512, JSON_THROW_ON_ERROR);
185+
$contextConfiguration['dimensions'] = json_decode($dimensions, true);
186186
}
187187

188188
return $this->contextFactory->create($contextConfiguration);

Classes/Driver/AbstractQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function toArray(): array
9191
*/
9292
public function getRequestAsJson(): string
9393
{
94-
return json_encode($this, JSON_THROW_ON_ERROR, 512);
94+
return json_encode($this);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)