Skip to content

Commit 56ff145

Browse files
authored
Prevent aliasing self class in use statements (#1830)
1 parent 9f4b372 commit 56ff145

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.2.0
610

711
### Added

src/ValueObject/ArrayValue.php

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

33
namespace AsyncAws\RdsDataService\ValueObject;
44

5-
use AsyncAws\RdsDataService\ValueObject\ArrayValue as ArrayValue1;
6-
75
/**
86
* Contains an array.
97
*/
@@ -59,7 +57,7 @@ public function __construct(array $input)
5957
$this->longValues = $input['longValues'] ?? null;
6058
$this->doubleValues = $input['doubleValues'] ?? null;
6159
$this->stringValues = $input['stringValues'] ?? null;
62-
$this->arrayValues = isset($input['arrayValues']) ? array_map([ArrayValue1::class, 'create'], $input['arrayValues']) : null;
60+
$this->arrayValues = isset($input['arrayValues']) ? array_map([ArrayValue::class, 'create'], $input['arrayValues']) : null;
6361
}
6462

6563
/**

0 commit comments

Comments
 (0)