Skip to content

Commit b07dde3

Browse files
authored
Fixed logic in AbstractApi::getSigner() (#755)
* Fixed logic in AbstractApi::getSigner() * Added changelgo
1 parent e3e2cbf commit b07dde3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## NOT RELEASED
44

5+
## 1.4.2
6+
7+
### Fixed
8+
9+
- Fixed logic in `AbstractApi::getSigner()` when passing `@region` to an API operation
10+
511
## 1.4.1
612

713
### Fixed

src/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function getEndpoint(string $uri, array $query, ?string $region): stri
224224
private function getSigner(?string $region)
225225
{
226226
/** @var string $region */
227-
$region = $region ?? $this->configuration->isDefault('region') ? null : $this->configuration->get('region');
227+
$region = $region ?? ($this->configuration->isDefault('region') ? null : $this->configuration->get('region'));
228228
if (!isset($this->signers[$region])) {
229229
$metadata = $this->getEndpointMetadata($region);
230230
$factories = $this->getSignerFactories();

0 commit comments

Comments
 (0)