Skip to content

Commit e536cd5

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 48f7da6 commit e536cd5

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
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
## 1.6.1
610

711
### Changed

src/EcrClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ protected function getEndpointMetadata(?string $region): array
212212
];
213213
}
214214

215-
throw new UnsupportedRegion(sprintf('The region "%s" is not supported by "Ecr".', $region));
215+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Ecr".', $region));
216216
}
217217
}

src/Input/GetAuthorizationTokenRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function create($input): self
4646
*/
4747
public function getRegistryIds(): array
4848
{
49-
@trigger_error(sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
49+
@trigger_error(\sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
5050

5151
return $this->registryIds ?? [];
5252
}
@@ -84,7 +84,7 @@ public function request(): Request
8484
*/
8585
public function setRegistryIds(array $value): self
8686
{
87-
@trigger_error(sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
87+
@trigger_error(\sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
8888
$this->registryIds = $value;
8989

9090
return $this;
@@ -94,7 +94,7 @@ private function requestBody(): array
9494
{
9595
$payload = [];
9696
if (null !== $v = $this->registryIds) {
97-
@trigger_error(sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
97+
@trigger_error(\sprintf('The property "registryIds" of "%s" is deprecated by AWS.', __CLASS__), \E_USER_DEPRECATED);
9898
$index = -1;
9999
$payload['registryIds'] = [];
100100
foreach ($v as $listValue) {

src/Result/GetAuthorizationTokenResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private function populateResultAuthorizationData(array $json): AuthorizationData
3636
{
3737
return new AuthorizationData([
3838
'authorizationToken' => isset($json['authorizationToken']) ? (string) $json['authorizationToken'] : null,
39-
'expiresAt' => (isset($json['expiresAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['expiresAt'])))) ? $d : null,
39+
'expiresAt' => (isset($json['expiresAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['expiresAt'])))) ? $d : null,
4040
'proxyEndpoint' => isset($json['proxyEndpoint']) ? (string) $json['proxyEndpoint'] : null,
4141
]);
4242
}

0 commit comments

Comments
 (0)