Skip to content

Commit 5a2baa7

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent fd533aa commit 5a2baa7

10 files changed

+16
-12
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.3
610

711
### Changed

src/Input/DeleteParameterRequest.php

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

src/Input/DeleteParametersRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function requestBody(): array
9292
{
9393
$payload = [];
9494
if (null === $v = $this->names) {
95-
throw new InvalidArgument(sprintf('Missing parameter "Names" for "%s". The value cannot be null.', __CLASS__));
95+
throw new InvalidArgument(\sprintf('Missing parameter "Names" for "%s". The value cannot be null.', __CLASS__));
9696
}
9797

9898
$index = -1;

src/Input/GetParameterRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function requestBody(): array
114114
{
115115
$payload = [];
116116
if (null === $v = $this->name) {
117-
throw new InvalidArgument(sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
117+
throw new InvalidArgument(\sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
118118
}
119119
$payload['Name'] = $v;
120120
if (null !== $v = $this->withDecryption) {

src/Input/GetParametersByPathRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private function requestBody(): array
214214
{
215215
$payload = [];
216216
if (null === $v = $this->path) {
217-
throw new InvalidArgument(sprintf('Missing parameter "Path" for "%s". The value cannot be null.', __CLASS__));
217+
throw new InvalidArgument(\sprintf('Missing parameter "Path" for "%s". The value cannot be null.', __CLASS__));
218218
}
219219
$payload['Path'] = $v;
220220
if (null !== $v = $this->recursive) {

src/Input/GetParametersRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function requestBody(): array
122122
{
123123
$payload = [];
124124
if (null === $v = $this->names) {
125-
throw new InvalidArgument(sprintf('Missing parameter "Names" for "%s". The value cannot be null.', __CLASS__));
125+
throw new InvalidArgument(\sprintf('Missing parameter "Names" for "%s". The value cannot be null.', __CLASS__));
126126
}
127127

128128
$index = -1;

src/Input/PutParameterRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,19 +474,19 @@ private function requestBody(): array
474474
{
475475
$payload = [];
476476
if (null === $v = $this->name) {
477-
throw new InvalidArgument(sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
477+
throw new InvalidArgument(\sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
478478
}
479479
$payload['Name'] = $v;
480480
if (null !== $v = $this->description) {
481481
$payload['Description'] = $v;
482482
}
483483
if (null === $v = $this->value) {
484-
throw new InvalidArgument(sprintf('Missing parameter "Value" for "%s". The value cannot be null.', __CLASS__));
484+
throw new InvalidArgument(\sprintf('Missing parameter "Value" for "%s". The value cannot be null.', __CLASS__));
485485
}
486486
$payload['Value'] = $v;
487487
if (null !== $v = $this->type) {
488488
if (!ParameterType::exists($v)) {
489-
throw new InvalidArgument(sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "ParameterType".', __CLASS__, $v));
489+
throw new InvalidArgument(\sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "ParameterType".', __CLASS__, $v));
490490
}
491491
$payload['Type'] = $v;
492492
}
@@ -509,7 +509,7 @@ private function requestBody(): array
509509
}
510510
if (null !== $v = $this->tier) {
511511
if (!ParameterTier::exists($v)) {
512-
throw new InvalidArgument(sprintf('Invalid parameter "Tier" for "%s". The value "%s" is not a valid "ParameterTier".', __CLASS__, $v));
512+
throw new InvalidArgument(\sprintf('Invalid parameter "Tier" for "%s". The value "%s" is not a valid "ParameterTier".', __CLASS__, $v));
513513
}
514514
$payload['Tier'] = $v;
515515
}

src/Result/GetParameterResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private function populateResultParameter(array $json): Parameter
3838
'Version' => isset($json['Version']) ? (int) $json['Version'] : null,
3939
'Selector' => isset($json['Selector']) ? (string) $json['Selector'] : null,
4040
'SourceResult' => isset($json['SourceResult']) ? (string) $json['SourceResult'] : null,
41-
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
41+
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
4242
'ARN' => isset($json['ARN']) ? (string) $json['ARN'] : null,
4343
'DataType' => isset($json['DataType']) ? (string) $json['DataType'] : null,
4444
]);

src/Result/GetParametersByPathResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function populateResultParameter(array $json): Parameter
106106
'Version' => isset($json['Version']) ? (int) $json['Version'] : null,
107107
'Selector' => isset($json['Selector']) ? (string) $json['Selector'] : null,
108108
'SourceResult' => isset($json['SourceResult']) ? (string) $json['SourceResult'] : null,
109-
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
109+
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
110110
'ARN' => isset($json['ARN']) ? (string) $json['ARN'] : null,
111111
'DataType' => isset($json['DataType']) ? (string) $json['DataType'] : null,
112112
]);

src/Result/GetParametersResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function populateResultParameter(array $json): Parameter
5959
'Version' => isset($json['Version']) ? (int) $json['Version'] : null,
6060
'Selector' => isset($json['Selector']) ? (string) $json['Selector'] : null,
6161
'SourceResult' => isset($json['SourceResult']) ? (string) $json['SourceResult'] : null,
62-
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
62+
'LastModifiedDate' => (isset($json['LastModifiedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastModifiedDate'])))) ? $d : null,
6363
'ARN' => isset($json['ARN']) ? (string) $json['ARN'] : null,
6464
'DataType' => isset($json['DataType']) ? (string) $json['DataType'] : null,
6565
]);

0 commit comments

Comments
 (0)