Skip to content

Commit 360548b

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent ffab80b commit 360548b

8 files changed

+22
-18
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+
- Enable compiler optimization for the `sprintf` function.
8+
59
## 2.1.2
610

711
### Changed

src/Input/BatchExecuteStatementRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ private function requestBody(): array
248248
{
249249
$payload = [];
250250
if (null === $v = $this->resourceArn) {
251-
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
251+
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
252252
}
253253
$payload['resourceArn'] = $v;
254254
if (null === $v = $this->secretArn) {
255-
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
255+
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
256256
}
257257
$payload['secretArn'] = $v;
258258
if (null === $v = $this->sql) {
259-
throw new InvalidArgument(sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
259+
throw new InvalidArgument(\sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
260260
}
261261
$payload['sql'] = $v;
262262
if (null !== $v = $this->database) {

src/Input/BeginTransactionRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ private function requestBody(): array
153153
{
154154
$payload = [];
155155
if (null === $v = $this->resourceArn) {
156-
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
156+
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
157157
}
158158
$payload['resourceArn'] = $v;
159159
if (null === $v = $this->secretArn) {
160-
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
160+
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
161161
}
162162
$payload['secretArn'] = $v;
163163
if (null !== $v = $this->database) {

src/Input/CommitTransactionRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ private function requestBody(): array
133133
{
134134
$payload = [];
135135
if (null === $v = $this->resourceArn) {
136-
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
136+
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
137137
}
138138
$payload['resourceArn'] = $v;
139139
if (null === $v = $this->secretArn) {
140-
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
140+
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
141141
}
142142
$payload['secretArn'] = $v;
143143
if (null === $v = $this->transactionId) {
144-
throw new InvalidArgument(sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
144+
throw new InvalidArgument(\sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
145145
}
146146
$payload['transactionId'] = $v;
147147

src/Input/ExecuteStatementRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,15 @@ private function requestBody(): array
348348
{
349349
$payload = [];
350350
if (null === $v = $this->resourceArn) {
351-
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
351+
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
352352
}
353353
$payload['resourceArn'] = $v;
354354
if (null === $v = $this->secretArn) {
355-
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
355+
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
356356
}
357357
$payload['secretArn'] = $v;
358358
if (null === $v = $this->sql) {
359-
throw new InvalidArgument(sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
359+
throw new InvalidArgument(\sprintf('Missing parameter "sql" for "%s". The value cannot be null.', __CLASS__));
360360
}
361361
$payload['sql'] = $v;
362362
if (null !== $v = $this->database) {
@@ -387,7 +387,7 @@ private function requestBody(): array
387387
}
388388
if (null !== $v = $this->formatRecordsAs) {
389389
if (!RecordsFormatType::exists($v)) {
390-
throw new InvalidArgument(sprintf('Invalid parameter "formatRecordsAs" for "%s". The value "%s" is not a valid "RecordsFormatType".', __CLASS__, $v));
390+
throw new InvalidArgument(\sprintf('Invalid parameter "formatRecordsAs" for "%s". The value "%s" is not a valid "RecordsFormatType".', __CLASS__, $v));
391391
}
392392
$payload['formatRecordsAs'] = $v;
393393
}

src/Input/RollbackTransactionRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ private function requestBody(): array
133133
{
134134
$payload = [];
135135
if (null === $v = $this->resourceArn) {
136-
throw new InvalidArgument(sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
136+
throw new InvalidArgument(\sprintf('Missing parameter "resourceArn" for "%s". The value cannot be null.', __CLASS__));
137137
}
138138
$payload['resourceArn'] = $v;
139139
if (null === $v = $this->secretArn) {
140-
throw new InvalidArgument(sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
140+
throw new InvalidArgument(\sprintf('Missing parameter "secretArn" for "%s". The value cannot be null.', __CLASS__));
141141
}
142142
$payload['secretArn'] = $v;
143143
if (null === $v = $this->transactionId) {
144-
throw new InvalidArgument(sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
144+
throw new InvalidArgument(\sprintf('Missing parameter "transactionId" for "%s". The value cannot be null.', __CLASS__));
145145
}
146146
$payload['transactionId'] = $v;
147147

src/ValueObject/ResultSetOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public function requestBody(): array
7878
$payload = [];
7979
if (null !== $v = $this->decimalReturnType) {
8080
if (!DecimalReturnType::exists($v)) {
81-
throw new InvalidArgument(sprintf('Invalid parameter "decimalReturnType" for "%s". The value "%s" is not a valid "DecimalReturnType".', __CLASS__, $v));
81+
throw new InvalidArgument(\sprintf('Invalid parameter "decimalReturnType" for "%s". The value "%s" is not a valid "DecimalReturnType".', __CLASS__, $v));
8282
}
8383
$payload['decimalReturnType'] = $v;
8484
}
8585
if (null !== $v = $this->longReturnType) {
8686
if (!LongReturnType::exists($v)) {
87-
throw new InvalidArgument(sprintf('Invalid parameter "longReturnType" for "%s". The value "%s" is not a valid "LongReturnType".', __CLASS__, $v));
87+
throw new InvalidArgument(\sprintf('Invalid parameter "longReturnType" for "%s". The value "%s" is not a valid "LongReturnType".', __CLASS__, $v));
8888
}
8989
$payload['longReturnType'] = $v;
9090
}

src/ValueObject/SqlParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function requestBody(): array
9999
}
100100
if (null !== $v = $this->typeHint) {
101101
if (!TypeHint::exists($v)) {
102-
throw new InvalidArgument(sprintf('Invalid parameter "typeHint" for "%s". The value "%s" is not a valid "TypeHint".', __CLASS__, $v));
102+
throw new InvalidArgument(\sprintf('Invalid parameter "typeHint" for "%s". The value "%s" is not a valid "TypeHint".', __CLASS__, $v));
103103
}
104104
$payload['typeHint'] = $v;
105105
}

0 commit comments

Comments
 (0)