diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ccd11d..d568577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - 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. +### Changed + +- Avoid usage of `alias` when use statement refers to self + ## 3.3.1 ### Changed diff --git a/src/ValueObject/AttributeValue.php b/src/ValueObject/AttributeValue.php index 6b974f1..95f56b7 100644 --- a/src/ValueObject/AttributeValue.php +++ b/src/ValueObject/AttributeValue.php @@ -2,8 +2,6 @@ namespace AsyncAws\DynamoDb\ValueObject; -use AsyncAws\DynamoDb\ValueObject\AttributeValue as AttributeValue1; - /** * Represents the data for an attribute. * @@ -133,8 +131,8 @@ public function __construct(array $input) $this->ss = $input['SS'] ?? null; $this->ns = $input['NS'] ?? null; $this->bs = $input['BS'] ?? null; - $this->m = isset($input['M']) ? array_map([AttributeValue1::class, 'create'], $input['M']) : null; - $this->l = isset($input['L']) ? array_map([AttributeValue1::class, 'create'], $input['L']) : null; + $this->m = isset($input['M']) ? array_map([AttributeValue::class, 'create'], $input['M']) : null; + $this->l = isset($input['L']) ? array_map([AttributeValue::class, 'create'], $input['L']) : null; $this->null = $input['NULL'] ?? null; $this->bool = $input['BOOL'] ?? null; }