@@ -155,15 +155,15 @@ private function populateResultFunctionList(array $json): array
155
155
'CodeSha256 ' => isset ($ item ['CodeSha256 ' ]) ? (string ) $ item ['CodeSha256 ' ] : null ,
156
156
'Version ' => isset ($ item ['Version ' ]) ? (string ) $ item ['Version ' ] : null ,
157
157
'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 ' ]),
160
160
'VpcId ' => isset ($ item ['VpcConfig ' ]['VpcId ' ]) ? (string ) $ item ['VpcConfig ' ]['VpcId ' ] : null ,
161
161
]),
162
162
'DeadLetterConfig ' => empty ($ item ['DeadLetterConfig ' ]) ? null : new DeadLetterConfig ([
163
163
'TargetArn ' => isset ($ item ['DeadLetterConfig ' ]['TargetArn ' ]) ? (string ) $ item ['DeadLetterConfig ' ]['TargetArn ' ] : null ,
164
164
]),
165
165
'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 ' ]),
167
167
'Error ' => empty ($ item ['Environment ' ]['Error ' ]) ? null : new EnvironmentError ([
168
168
'ErrorCode ' => isset ($ item ['Environment ' ]['Error ' ]['ErrorCode ' ]) ? (string ) $ item ['Environment ' ]['Error ' ]['ErrorCode ' ] : null ,
169
169
'Message ' => isset ($ item ['Environment ' ]['Error ' ]['Message ' ]) ? (string ) $ item ['Environment ' ]['Error ' ]['Message ' ] : null ,
@@ -175,19 +175,19 @@ private function populateResultFunctionList(array $json): array
175
175
]),
176
176
'MasterArn ' => isset ($ item ['MasterArn ' ]) ? (string ) $ item ['MasterArn ' ] : null ,
177
177
'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 ' ]),
179
179
'State ' => isset ($ item ['State ' ]) ? (string ) $ item ['State ' ] : null ,
180
180
'StateReason ' => isset ($ item ['StateReason ' ]) ? (string ) $ item ['StateReason ' ] : null ,
181
181
'StateReasonCode ' => isset ($ item ['StateReasonCode ' ]) ? (string ) $ item ['StateReasonCode ' ] : null ,
182
182
'LastUpdateStatus ' => isset ($ item ['LastUpdateStatus ' ]) ? (string ) $ item ['LastUpdateStatus ' ] : null ,
183
183
'LastUpdateStatusReason ' => isset ($ item ['LastUpdateStatusReason ' ]) ? (string ) $ item ['LastUpdateStatusReason ' ] : null ,
184
184
'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 ' ]),
186
186
'PackageType ' => isset ($ item ['PackageType ' ]) ? (string ) $ item ['PackageType ' ] : null ,
187
187
'ImageConfigResponse ' => empty ($ item ['ImageConfigResponse ' ]) ? null : new ImageConfigResponse ([
188
188
'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 ' ]),
191
191
'WorkingDirectory ' => isset ($ item ['ImageConfigResponse ' ]['ImageConfig ' ]['WorkingDirectory ' ]) ? (string ) $ item ['ImageConfigResponse ' ]['ImageConfig ' ]['WorkingDirectory ' ] : null ,
192
192
]),
193
193
'Error ' => empty ($ item ['ImageConfigResponse ' ]['Error ' ]) ? null : new ImageConfigError ([
0 commit comments