Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/CodeGenerator/src/Generator/PhpGenerator/ClassBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public function getClassName(): ClassName

public function addUse(string $name): self
{
if ($name === $this->className->getFqdn()) {
return $this;
}

$this->namespace->addUse($name);

return $this;
Expand Down
4 changes: 4 additions & 0 deletions src/Service/DynamoDb/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/Service/DynamoDb/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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised PHP-CS-Fixer doesn't convert this to self::. Does it convert it back, if we used self:: here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it converts back.

$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
4 changes: 4 additions & 0 deletions src/Service/RdsDataService/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.2.0

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

namespace AsyncAws\RdsDataService\ValueObject;

use AsyncAws\RdsDataService\ValueObject\ArrayValue as ArrayValue1;

/**
* Contains an array.
*/
Expand Down Expand Up @@ -59,7 +57,7 @@ public function __construct(array $input)
$this->longValues = $input['longValues'] ?? null;
$this->doubleValues = $input['doubleValues'] ?? null;
$this->stringValues = $input['stringValues'] ?? null;
$this->arrayValues = isset($input['arrayValues']) ? array_map([ArrayValue1::class, 'create'], $input['arrayValues']) : null;
$this->arrayValues = isset($input['arrayValues']) ? array_map([ArrayValue::class, 'create'], $input['arrayValues']) : null;
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Service/S3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### Changed

- Avoid usage of `alias` when use statement refers to self
- AWS enhancement: Documentation updates.

## 2.6.0
Expand Down
4 changes: 1 addition & 3 deletions src/Service/S3/src/ValueObject/EventBridgeConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace AsyncAws\S3\ValueObject;

use AsyncAws\S3\ValueObject\EventBridgeConfiguration as EventBridgeConfiguration1;

/**
* A container for specifying the configuration for Amazon EventBridge.
*/
final class EventBridgeConfiguration
{
/**
* @param array|EventBridgeConfiguration1 $input
* @param array|EventBridgeConfiguration $input
*/
public static function create($input): self
{
Expand Down
4 changes: 4 additions & 0 deletions src/Service/TimestreamQuery/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/Service/TimestreamQuery/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
Loading