Hotfix arcadia orders

This commit is contained in:
Jérémy Munsch 2021-11-30 16:10:00 +01:00
parent 21c035de25
commit 796bc1a814
No known key found for this signature in database
GPG key ID: 55196BEE445F6049
4 changed files with 6 additions and 3 deletions

View file

@ -2,6 +2,9 @@
#All notable changes to `CRM CLient V2` will be documented in this file.
# version 2.3.2
- Hotfixed arcadia order
# version 2.3.1
- Fixed Consider fill attributes as can be nullable
- Fixed Respect sometimes validation

View file

@ -3,7 +3,7 @@
"type": "library",
"description": "LDC CRM Client V2",
"license": "MIT",
"version": "2.3.1",
"version": "2.3.2",
"authors": [
{
"name": "Jérémy Munsch",

View file

@ -307,7 +307,7 @@ class ArcadiaMailDefault extends CrmClientModel
if (isset($properties['state_order'])) {
try {
$properties['state_order'] = (\is_object($properties['state_order']) and
get_class($properties['country']) === ArcadiaOrderType::class) ?
get_class($properties['state_order']) === ArcadiaOrderType::class) ?
$properties['state_order']->value : (ctype_digit($properties['state_order']) ?
(int)$properties['state_order'] : $properties['state_order']);
} catch (TypeError $e) {

View file

@ -277,7 +277,7 @@ class ArcadiaMailGame extends CrmClientModel
if (isset($properties['state_order'])) {
try {
$properties['state_order'] = (\is_object($properties['state_order']) and
get_class($properties['country']) === ArcadiaOrderType::class) ?
get_class($properties['state_order']) === ArcadiaOrderType::class) ?
$properties['state_order']->value : (ctype_digit($properties['state_order']) ?
(int)$properties['state_order'] : $properties['state_order']);
} catch (TypeError $e) {