Hotfix arcadia orders
This commit is contained in:
parent
21c035de25
commit
796bc1a814
4 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue