File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -301,7 +301,8 @@ public function map($json, $object)
301301 // but only a flat type (i.e. string, int)
302302 if ($ this ->bStrictObjectTypeChecking
303303 && !is_subclass_of ($ type , \BackedEnum::class)
304- && (!is_subclass_of ($ type , \DateTimeInterface::class) || !$ this ->isSafeDateTime ($ jvalue ))
304+ && (!is_subclass_of ($ type , \DateTimeInterface::class)
305+ || !$ this ->isSafeDateTime ($ jvalue ))
305306 ) {
306307 throw new JsonMapper_Exception (
307308 'JSON property " ' . $ key . '" must be an object, '
@@ -456,7 +457,8 @@ public function mapArray(
456457 $ array [$ key ] = $ jvalue ;
457458 } else if ($ this ->bStrictObjectTypeChecking
458459 && !is_subclass_of ($ class , \BackedEnum::class)
459- && (!is_subclass_of ($ class , \DateTimeInterface::class) || !$ this ->isSafeDateTime ($ jvalue ))
460+ && (!is_subclass_of ($ class , \DateTimeInterface::class)
461+ || !$ this ->isSafeDateTime ($ jvalue ))
460462 ) {
461463 throw new JsonMapper_Exception (
462464 'JSON property '
You can’t perform that action at this time.
0 commit comments