@@ -155,15 +155,15 @@ private function populateResultFunctionList(array $json): array
155155 'CodeSha256 ' => isset ($ item ['CodeSha256 ' ]) ? (string ) $ item ['CodeSha256 ' ] : null ,
156156 'Version ' => isset ($ item ['Version ' ]) ? (string ) $ item ['Version ' ] : null ,
157157 'VpcConfig ' => empty ($ item ['VpcConfig ' ]) ? null : new VpcConfigResponse ([
158- 'SubnetIds ' => empty ($ item ['VpcConfig ' ]['SubnetIds ' ]) ? [] : $ this ->populateResultSubnetIds ($ item ['VpcConfig ' ]['SubnetIds ' ]),
159- 'SecurityGroupIds ' => empty ($ item ['VpcConfig ' ]['SecurityGroupIds ' ]) ? [] : $ this ->populateResultSecurityGroupIds ($ item ['VpcConfig ' ]['SecurityGroupIds ' ]),
158+ 'SubnetIds ' => ! isset ($ item ['VpcConfig ' ]['SubnetIds ' ]) ? null : $ this ->populateResultSubnetIds ($ item ['VpcConfig ' ]['SubnetIds ' ]),
159+ 'SecurityGroupIds ' => ! isset ($ item ['VpcConfig ' ]['SecurityGroupIds ' ]) ? null : $ this ->populateResultSecurityGroupIds ($ item ['VpcConfig ' ]['SecurityGroupIds ' ]),
160160 'VpcId ' => isset ($ item ['VpcConfig ' ]['VpcId ' ]) ? (string ) $ item ['VpcConfig ' ]['VpcId ' ] : null ,
161161 ]),
162162 'DeadLetterConfig ' => empty ($ item ['DeadLetterConfig ' ]) ? null : new DeadLetterConfig ([
163163 'TargetArn ' => isset ($ item ['DeadLetterConfig ' ]['TargetArn ' ]) ? (string ) $ item ['DeadLetterConfig ' ]['TargetArn ' ] : null ,
164164 ]),
165165 'Environment ' => empty ($ item ['Environment ' ]) ? null : new EnvironmentResponse ([
166- 'Variables ' => empty ($ item ['Environment ' ]['Variables ' ]) ? [] : $ this ->populateResultEnvironmentVariables ($ item ['Environment ' ]['Variables ' ]),
166+ 'Variables ' => ! isset ($ item ['Environment ' ]['Variables ' ]) ? null : $ this ->populateResultEnvironmentVariables ($ item ['Environment ' ]['Variables ' ]),
167167 'Error ' => empty ($ item ['Environment ' ]['Error ' ]) ? null : new EnvironmentError ([
168168 'ErrorCode ' => isset ($ item ['Environment ' ]['Error ' ]['ErrorCode ' ]) ? (string ) $ item ['Environment ' ]['Error ' ]['ErrorCode ' ] : null ,
169169 'Message ' => isset ($ item ['Environment ' ]['Error ' ]['Message ' ]) ? (string ) $ item ['Environment ' ]['Error ' ]['Message ' ] : null ,
@@ -175,19 +175,19 @@ private function populateResultFunctionList(array $json): array
175175 ]),
176176 'MasterArn ' => isset ($ item ['MasterArn ' ]) ? (string ) $ item ['MasterArn ' ] : null ,
177177 'RevisionId ' => isset ($ item ['RevisionId ' ]) ? (string ) $ item ['RevisionId ' ] : null ,
178- 'Layers ' => empty ($ item ['Layers ' ]) ? [] : $ this ->populateResultLayersReferenceList ($ item ['Layers ' ]),
178+ 'Layers ' => ! isset ($ item ['Layers ' ]) ? null : $ this ->populateResultLayersReferenceList ($ item ['Layers ' ]),
179179 'State ' => isset ($ item ['State ' ]) ? (string ) $ item ['State ' ] : null ,
180180 'StateReason ' => isset ($ item ['StateReason ' ]) ? (string ) $ item ['StateReason ' ] : null ,
181181 'StateReasonCode ' => isset ($ item ['StateReasonCode ' ]) ? (string ) $ item ['StateReasonCode ' ] : null ,
182182 'LastUpdateStatus ' => isset ($ item ['LastUpdateStatus ' ]) ? (string ) $ item ['LastUpdateStatus ' ] : null ,
183183 'LastUpdateStatusReason ' => isset ($ item ['LastUpdateStatusReason ' ]) ? (string ) $ item ['LastUpdateStatusReason ' ] : null ,
184184 'LastUpdateStatusReasonCode ' => isset ($ item ['LastUpdateStatusReasonCode ' ]) ? (string ) $ item ['LastUpdateStatusReasonCode ' ] : null ,
185- 'FileSystemConfigs ' => empty ($ item ['FileSystemConfigs ' ]) ? [] : $ this ->populateResultFileSystemConfigList ($ item ['FileSystemConfigs ' ]),
185+ 'FileSystemConfigs ' => ! isset ($ item ['FileSystemConfigs ' ]) ? null : $ this ->populateResultFileSystemConfigList ($ item ['FileSystemConfigs ' ]),
186186 'PackageType ' => isset ($ item ['PackageType ' ]) ? (string ) $ item ['PackageType ' ] : null ,
187187 'ImageConfigResponse ' => empty ($ item ['ImageConfigResponse ' ]) ? null : new ImageConfigResponse ([
188188 'ImageConfig ' => empty ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]) ? null : new ImageConfig ([
189- 'EntryPoint ' => empty ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['EntryPoint ' ]) ? [] : $ this ->populateResultStringList ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['EntryPoint ' ]),
190- 'Command ' => empty ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['Command ' ]) ? [] : $ this ->populateResultStringList ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['Command ' ]),
189+ 'EntryPoint ' => ! isset ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['EntryPoint ' ]) ? null : $ this ->populateResultStringList ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['EntryPoint ' ]),
190+ 'Command ' => ! isset ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['Command ' ]) ? null : $ this ->populateResultStringList ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['Command ' ]),
191191 'WorkingDirectory ' => isset ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['WorkingDirectory ' ]) ? (string ) $ item ['ImageConfigResponse ' ]['ImageConfig ' ]['WorkingDirectory ' ] : null ,
192192 ]),
193193 'Error ' => empty ($ item ['ImageConfigResponse ' ]['Error ' ]) ? null : new ImageConfigError ([
0 commit comments