Skip to content

Commit 6eca822

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent a0b3387 commit 6eca822

8 files changed

+12
-8
lines changed

CHANGELOG.md

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

77
- AWS api-change: Added `KmsAccessDeniedException`, `KmsInvalidStateException` and `KmsThrottlingException` exceptions
88

9+
### Changed
10+
11+
- Enable compiler optimization for the `sprintf` function.
12+
913
## 1.2.3
1014

1115
### Changed

src/Input/SendTaskFailureInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private function requestBody(): array
130130
{
131131
$payload = [];
132132
if (null === $v = $this->taskToken) {
133-
throw new InvalidArgument(sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
133+
throw new InvalidArgument(\sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
134134
}
135135
$payload['taskToken'] = $v;
136136
if (null !== $v = $this->error) {

src/Input/SendTaskHeartbeatInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function requestBody(): array
8686
{
8787
$payload = [];
8888
if (null === $v = $this->taskToken) {
89-
throw new InvalidArgument(sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
89+
throw new InvalidArgument(\sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
9090
}
9191
$payload['taskToken'] = $v;
9292

src/Input/SendTaskSuccessInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ private function requestBody(): array
111111
{
112112
$payload = [];
113113
if (null === $v = $this->taskToken) {
114-
throw new InvalidArgument(sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
114+
throw new InvalidArgument(\sprintf('Missing parameter "taskToken" for "%s". The value cannot be null.', __CLASS__));
115115
}
116116
$payload['taskToken'] = $v;
117117
if (null === $v = $this->output) {
118-
throw new InvalidArgument(sprintf('Missing parameter "output" for "%s". The value cannot be null.', __CLASS__));
118+
throw new InvalidArgument(\sprintf('Missing parameter "output" for "%s". The value cannot be null.', __CLASS__));
119119
}
120120
$payload['output'] = $v;
121121

src/Input/StartExecutionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private function requestBody(): array
196196
{
197197
$payload = [];
198198
if (null === $v = $this->stateMachineArn) {
199-
throw new InvalidArgument(sprintf('Missing parameter "stateMachineArn" for "%s". The value cannot be null.', __CLASS__));
199+
throw new InvalidArgument(\sprintf('Missing parameter "stateMachineArn" for "%s". The value cannot be null.', __CLASS__));
200200
}
201201
$payload['stateMachineArn'] = $v;
202202
if (null !== $v = $this->name) {

src/Input/StopExecutionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private function requestBody(): array
127127
{
128128
$payload = [];
129129
if (null === $v = $this->executionArn) {
130-
throw new InvalidArgument(sprintf('Missing parameter "executionArn" for "%s". The value cannot be null.', __CLASS__));
130+
throw new InvalidArgument(\sprintf('Missing parameter "executionArn" for "%s". The value cannot be null.', __CLASS__));
131131
}
132132
$payload['executionArn'] = $v;
133133
if (null !== $v = $this->error) {

src/Result/StartExecutionOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ protected function populateResult(Response $response): void
4040
$data = $response->toArray();
4141

4242
$this->executionArn = (string) $data['executionArn'];
43-
$this->startDate = /** @var \DateTimeImmutable $d */ $d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $data['startDate']));
43+
$this->startDate = /** @var \DateTimeImmutable $d */ $d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $data['startDate']));
4444
}
4545
}

src/Result/StopExecutionOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ protected function populateResult(Response $response): void
2525
{
2626
$data = $response->toArray();
2727

28-
$this->stopDate = /** @var \DateTimeImmutable $d */ $d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $data['stopDate']));
28+
$this->stopDate = /** @var \DateTimeImmutable $d */ $d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $data['stopDate']));
2929
}
3030
}

0 commit comments

Comments
 (0)