mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
DX: apply rector rulesets up to PHP 73
This commit is contained in:
@@ -44,7 +44,7 @@ final class RelatorioDriver implements DriverInterface
|
||||
{
|
||||
$form = new FormDataPart(
|
||||
[
|
||||
'variables' => json_encode($data),
|
||||
'variables' => json_encode($data, JSON_THROW_ON_ERROR),
|
||||
'template' => new DataPart($template, $templateName ?? uniqid('template_'), $resourceType),
|
||||
]
|
||||
);
|
||||
@@ -61,7 +61,7 @@ final class RelatorioDriver implements DriverInterface
|
||||
$content = $e->getResponse()->getContent(false);
|
||||
|
||||
if (400 === $e->getResponse()->getStatusCode()) {
|
||||
$content = json_decode($content, true);
|
||||
$content = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
|
||||
$this->logger->error('relatorio: template error', [
|
||||
'error' => $content['message'] ?? '_not defined',
|
||||
]);
|
||||
|
Reference in New Issue
Block a user