Skip to content

Commit

Permalink
Prevent aliasing self class in use statements (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jan 13, 2025
1 parent 4f4fe94 commit 5721815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/ValueObject/AttributeValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace AsyncAws\DynamoDb\ValueObject;

use AsyncAws\DynamoDb\ValueObject\AttributeValue as AttributeValue1;

/**
* Represents the data for an attribute.
*
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5721815

Please sign in to comment.