mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
DX: apply rector rulesets up to PHP 73
This commit is contained in:
@@ -29,7 +29,7 @@ class AggregateStringHelper
|
||||
|
||||
return implode(
|
||||
'|',
|
||||
json_decode($value, true)
|
||||
json_decode($value, true, 512, JSON_THROW_ON_ERROR)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
@@ -310,7 +310,7 @@ class ExportAddressHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->translatableStringHelper->localize(json_decode($value, true));
|
||||
return $this->translatableStringHelper->localize(json_decode($value, true, 512, JSON_THROW_ON_ERROR));
|
||||
};
|
||||
|
||||
case 'isNoAddress':
|
||||
@@ -369,7 +369,7 @@ class ExportAddressHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
$decodedValues = json_decode($value, true);
|
||||
$decodedValues = json_decode($value, true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
switch (count($decodedValues)) {
|
||||
case 0:
|
||||
|
@@ -39,7 +39,7 @@ class TranslatableStringExportLabelHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->translatableStringHelper->localize(json_decode($value, true));
|
||||
return $this->translatableStringHelper->localize(json_decode($value, true, 512, JSON_THROW_ON_ERROR));
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class TranslatableStringExportLabelHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
$decoded = json_decode($value, true);
|
||||
$decoded = json_decode($value, true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
return implode(
|
||||
'|',
|
||||
|
@@ -54,7 +54,7 @@ class UserHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
$decoded = json_decode($value);
|
||||
$decoded = json_decode($value, null, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
if (0 === count($decoded)) {
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user