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 6bb44bb commit e6782fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Avoid usage of `alias` when use statement refers to self

## 2.1.0

### Added
Expand Down
4 changes: 1 addition & 3 deletions src/ValueObject/Datum.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace AsyncAws\TimestreamQuery\ValueObject;

use AsyncAws\TimestreamQuery\ValueObject\Datum as Datum1;

/**
* Datum represents a single data point in a query result.
*/
Expand Down Expand Up @@ -57,7 +55,7 @@ public function __construct(array $input)
{
$this->scalarValue = $input['ScalarValue'] ?? null;
$this->timeSeriesValue = isset($input['TimeSeriesValue']) ? array_map([TimeSeriesDataPoint::class, 'create'], $input['TimeSeriesValue']) : null;
$this->arrayValue = isset($input['ArrayValue']) ? array_map([Datum1::class, 'create'], $input['ArrayValue']) : null;
$this->arrayValue = isset($input['ArrayValue']) ? array_map([Datum::class, 'create'], $input['ArrayValue']) : null;
$this->rowValue = isset($input['RowValue']) ? Row::create($input['RowValue']) : null;
$this->nullValue = $input['NullValue'] ?? null;
}
Expand Down

0 comments on commit e6782fa

Please sign in to comment.