Skip to content

Commit e6782fa

Browse files
authored
Prevent aliasing self class in use statements (#1830)
1 parent 6bb44bb commit e6782fa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

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

33
## NOT RELEASED
44

5+
### Changed
6+
7+
- Avoid usage of `alias` when use statement refers to self
8+
59
## 2.1.0
610

711
### Added

src/ValueObject/Datum.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace AsyncAws\TimestreamQuery\ValueObject;
44

5-
use AsyncAws\TimestreamQuery\ValueObject\Datum as Datum1;
6-
75
/**
86
* Datum represents a single data point in a query result.
97
*/
@@ -57,7 +55,7 @@ public function __construct(array $input)
5755
{
5856
$this->scalarValue = $input['ScalarValue'] ?? null;
5957
$this->timeSeriesValue = isset($input['TimeSeriesValue']) ? array_map([TimeSeriesDataPoint::class, 'create'], $input['TimeSeriesValue']) : null;
60-
$this->arrayValue = isset($input['ArrayValue']) ? array_map([Datum1::class, 'create'], $input['ArrayValue']) : null;
58+
$this->arrayValue = isset($input['ArrayValue']) ? array_map([Datum::class, 'create'], $input['ArrayValue']) : null;
6159
$this->rowValue = isset($input['RowValue']) ? Row::create($input['RowValue']) : null;
6260
$this->nullValue = $input['NullValue'] ?? null;
6361
}

0 commit comments

Comments
 (0)