Skip to content

Commit 5721815

Browse files
authored
Prevent aliasing self class in use statements (#1830)
1 parent 4f4fe94 commit 5721815

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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: This change adds support for global tables with multi-Region strong consistency (in preview). The UpdateTable API now supports a new attribute MultiRegionConsistency to set consistency when creating global tables. The DescribeTable output now optionally includes the MultiRegionConsistency attribute.
88

9+
### Changed
10+
11+
- Avoid usage of `alias` when use statement refers to self
12+
913
## 3.3.1
1014

1115
### Changed

src/ValueObject/AttributeValue.php

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

33
namespace AsyncAws\DynamoDb\ValueObject;
44

5-
use AsyncAws\DynamoDb\ValueObject\AttributeValue as AttributeValue1;
6-
75
/**
86
* Represents the data for an attribute.
97
*
@@ -133,8 +131,8 @@ public function __construct(array $input)
133131
$this->ss = $input['SS'] ?? null;
134132
$this->ns = $input['NS'] ?? null;
135133
$this->bs = $input['BS'] ?? null;
136-
$this->m = isset($input['M']) ? array_map([AttributeValue1::class, 'create'], $input['M']) : null;
137-
$this->l = isset($input['L']) ? array_map([AttributeValue1::class, 'create'], $input['L']) : null;
134+
$this->m = isset($input['M']) ? array_map([AttributeValue::class, 'create'], $input['M']) : null;
135+
$this->l = isset($input['L']) ? array_map([AttributeValue::class, 'create'], $input['L']) : null;
138136
$this->null = $input['NULL'] ?? null;
139137
$this->bool = $input['BOOL'] ?? null;
140138
}

0 commit comments

Comments
 (0)