Skip to content

Commit 63f0ffc

Browse files
authored
Fix the generator when header is assigned to a required property (#1851)
1 parent e1d2e5c commit 63f0ffc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- AWS api-change: Added `us-isof-east-1` and `us-isof-south-1` regions
88

9+
### Changed
10+
11+
- trust AWS's API response: And not check if required headers are present
12+
913
## 2.6.0
1014

1115
### Added

src/Result/CreateHostedZoneResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function populateResult(Response $response): void
9090
{
9191
$headers = $response->getHeaders();
9292

93-
$this->location = $headers['location'][0] ?? null;
93+
$this->location = $headers['location'][0];
9494

9595
$data = new \SimpleXMLElement($response->getContent());
9696
$this->hostedZone = $this->populateResultHostedZone($data->HostedZone);

0 commit comments

Comments
 (0)