Skip to content

Commit

Permalink
Bump php-cs-fixer to version 3.60 (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jul 30, 2024
1 parent ffab80b commit 360548b
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 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

- Enable compiler optimization for the `sprintf` function.

## 2.1.2

### Changed
Expand Down
6 changes: 3 additions & 3 deletions src/Input/BatchExecuteStatementRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->resourceArn) {
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['resourceArn'] = $v;
if (null === $v = $this->secretArn) {
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['secretArn'] = $v;
if (null === $v = $this->sql) {
throw new InvalidArgument(sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
}
$payload['sql'] = $v;
if (null !== $v = $this->database) {
Expand Down
4 changes: 2 additions & 2 deletions src/Input/BeginTransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->resourceArn) {
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['resourceArn'] = $v;
if (null === $v = $this->secretArn) {
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['secretArn'] = $v;
if (null !== $v = $this->database) {
Expand Down
6 changes: 3 additions & 3 deletions src/Input/CommitTransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->resourceArn) {
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['resourceArn'] = $v;
if (null === $v = $this->secretArn) {
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['secretArn'] = $v;
if (null === $v = $this->transactionId) {
throw new InvalidArgument(sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['transactionId'] = $v;

Expand Down
8 changes: 4 additions & 4 deletions src/Input/ExecuteStatementRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->resourceArn) {
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['resourceArn'] = $v;
if (null === $v = $this->secretArn) {
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['secretArn'] = $v;
if (null === $v = $this->sql) {
throw new InvalidArgument(sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
}
$payload['sql'] = $v;
if (null !== $v = $this->database) {
Expand Down Expand Up @@ -387,7 +387,7 @@ private function requestBody(): array
}
if (null !== $v = $this->formatRecordsAs) {
if (!RecordsFormatType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "formatRecordsAs" for "%s". The value "%s" is not a valid "RecordsFormatType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "formatRecordsAs" for "%s". The value "%s" is not a valid "RecordsFormatType".', __CLASS__, $v));
}
$payload['formatRecordsAs'] = $v;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Input/RollbackTransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->resourceArn) {
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['resourceArn'] = $v;
if (null === $v = $this->secretArn) {
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
}
$payload['secretArn'] = $v;
if (null === $v = $this->transactionId) {
throw new InvalidArgument(sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['transactionId'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/ValueObject/ResultSetOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public function requestBody(): array
$payload = [];
if (null !== $v = $this->decimalReturnType) {
if (!DecimalReturnType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "decimalReturnType" for "%s". The value "%s" is not a valid "DecimalReturnType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "decimalReturnType" for "%s". The value "%s" is not a valid "DecimalReturnType".', __CLASS__, $v));
}
$payload['decimalReturnType'] = $v;
}
if (null !== $v = $this->longReturnType) {
if (!LongReturnType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "longReturnType" for "%s". The value "%s" is not a valid "LongReturnType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "longReturnType" for "%s". The value "%s" is not a valid "LongReturnType".', __CLASS__, $v));
}
$payload['longReturnType'] = $v;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/SqlParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function requestBody(): array
}
if (null !== $v = $this->typeHint) {
if (!TypeHint::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "typeHint" for "%s". The value "%s" is not a valid "TypeHint".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "typeHint" for "%s". The value "%s" is not a valid "TypeHint".', __CLASS__, $v));
}
$payload['typeHint'] = $v;
}
Expand Down

0 comments on commit 360548b

Please sign in to comment.