@@ -1200,7 +1200,7 @@ private function populateResultJob(array $json): Job
1200
1200
'Arn ' => isset ($ json ['arn ' ]) ? (string ) $ json ['arn ' ] : null ,
1201
1201
'BillingTagsSource ' => isset ($ json ['billingTagsSource ' ]) ? (string ) $ json ['billingTagsSource ' ] : null ,
1202
1202
'ClientRequestToken ' => isset ($ json ['clientRequestToken ' ]) ? (string ) $ json ['clientRequestToken ' ] : null ,
1203
- 'CreatedAt ' => isset ($ json ['createdAt ' ]) ? \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['createdAt ' ])) : null ,
1203
+ 'CreatedAt ' => isset ($ json ['createdAt ' ]) && ( $ d = \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['createdAt ' ]))) ? $ d : null ,
1204
1204
'CurrentPhase ' => isset ($ json ['currentPhase ' ]) ? (string ) $ json ['currentPhase ' ] : null ,
1205
1205
'ErrorCode ' => isset ($ json ['errorCode ' ]) ? (int ) $ json ['errorCode ' ] : null ,
1206
1206
'ErrorMessage ' => isset ($ json ['errorMessage ' ]) ? (string ) $ json ['errorMessage ' ] : null ,
@@ -1715,7 +1715,7 @@ private function populateResultQueueTransition(array $json): QueueTransition
1715
1715
return new QueueTransition ([
1716
1716
'DestinationQueue ' => isset ($ json ['destinationQueue ' ]) ? (string ) $ json ['destinationQueue ' ] : null ,
1717
1717
'SourceQueue ' => isset ($ json ['sourceQueue ' ]) ? (string ) $ json ['sourceQueue ' ] : null ,
1718
- 'Timestamp ' => isset ($ json ['timestamp ' ]) ? \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['timestamp ' ])) : null ,
1718
+ 'Timestamp ' => isset ($ json ['timestamp ' ]) && ( $ d = \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['timestamp ' ]))) ? $ d : null ,
1719
1719
]);
1720
1720
}
1721
1721
@@ -1844,9 +1844,9 @@ private function populateResultTimedMetadataInsertion(array $json): TimedMetadat
1844
1844
private function populateResultTiming (array $ json ): Timing
1845
1845
{
1846
1846
return new Timing ([
1847
- 'FinishTime ' => isset ($ json ['finishTime ' ]) ? \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['finishTime ' ])) : null ,
1848
- 'StartTime ' => isset ($ json ['startTime ' ]) ? \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['startTime ' ])) : null ,
1849
- 'SubmitTime ' => isset ($ json ['submitTime ' ]) ? \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['submitTime ' ])) : null ,
1847
+ 'FinishTime ' => isset ($ json ['finishTime ' ]) && ( $ d = \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['finishTime ' ]))) ? $ d : null ,
1848
+ 'StartTime ' => isset ($ json ['startTime ' ]) && ( $ d = \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['startTime ' ]))) ? $ d : null ,
1849
+ 'SubmitTime ' => isset ($ json ['submitTime ' ]) && ( $ d = \DateTimeImmutable::createFromFormat ('U.u ' , sprintf ('%.6F ' , $ json ['submitTime ' ]))) ? $ d : null ,
1850
1850
]);
1851
1851
}
1852
1852
0 commit comments