@@ -262,9 +262,9 @@ public function normalize($object, $format = null, array $context = [])
262262 $ data ['AttachStderr ' ] = $ object ->getAttachStderr ();
263263 }
264264 if ($ object ->isInitialized ('exposedPorts ' ) && null !== $ object ->getExposedPorts ()) {
265- $ values = [] ;
265+ $ values = new \ ArrayObject ([], \ArrayObject:: ARRAY_AS_PROPS ) ;
266266 foreach ($ object ->getExposedPorts () as $ key => $ value ) {
267- $ values [$ key ] = $ this ->normalizer ->normalize ($ value , 'json ' , $ context );
267+ $ values [$ key ] = new \ ArrayObject ( $ this ->normalizer ->normalize ($ value , 'json ' , $ context), \ArrayObject:: ARRAY_AS_PROPS );
268268 }
269269 $ data ['ExposedPorts ' ] = $ values ;
270270 }
@@ -292,7 +292,7 @@ public function normalize($object, $format = null, array $context = [])
292292 $ data ['Cmd ' ] = $ values_2 ;
293293 }
294294 if ($ object ->isInitialized ('healthcheck ' ) && null !== $ object ->getHealthcheck ()) {
295- $ data ['Healthcheck ' ] = $ this ->normalizer ->normalize ($ object ->getHealthcheck (), 'json ' , $ context );
295+ $ data ['Healthcheck ' ] = new \ ArrayObject ( $ this ->normalizer ->normalize ($ object ->getHealthcheck (), 'json ' , $ context), \ArrayObject:: ARRAY_AS_PROPS );
296296 }
297297 if ($ object ->isInitialized ('argsEscaped ' ) && null !== $ object ->getArgsEscaped ()) {
298298 $ data ['ArgsEscaped ' ] = $ object ->getArgsEscaped ();
@@ -301,9 +301,9 @@ public function normalize($object, $format = null, array $context = [])
301301 $ data ['Image ' ] = $ object ->getImage ();
302302 }
303303 if ($ object ->isInitialized ('volumes ' ) && null !== $ object ->getVolumes ()) {
304- $ values_3 = [] ;
304+ $ values_3 = new \ ArrayObject ([], \ArrayObject:: ARRAY_AS_PROPS ) ;
305305 foreach ($ object ->getVolumes () as $ key_1 => $ value_3 ) {
306- $ values_3 [$ key_1 ] = $ this ->normalizer ->normalize ($ value_3 , 'json ' , $ context );
306+ $ values_3 [$ key_1 ] = new \ ArrayObject ( $ this ->normalizer ->normalize ($ value_3 , 'json ' , $ context), \ArrayObject:: ARRAY_AS_PROPS );
307307 }
308308 $ data ['Volumes ' ] = $ values_3 ;
309309 }
@@ -331,7 +331,7 @@ public function normalize($object, $format = null, array $context = [])
331331 $ data ['OnBuild ' ] = $ values_5 ;
332332 }
333333 if ($ object ->isInitialized ('labels ' ) && null !== $ object ->getLabels ()) {
334- $ values_6 = [] ;
334+ $ values_6 = new \ ArrayObject ([], \ArrayObject:: ARRAY_AS_PROPS ) ;
335335 foreach ($ object ->getLabels () as $ key_2 => $ value_6 ) {
336336 $ values_6 [$ key_2 ] = $ value_6 ;
337337 }
0 commit comments