Skip to content

Commit 1826f49

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent cdeea62 commit 1826f49

File tree

3 files changed

+7
-3
lines changed

3 files changed

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

711
### Changed

src/Input/GetThingShadowRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function request(): Request
8484
// Prepare URI
8585
$uri = [];
8686
if (null === $v = $this->thingName) {
87-
throw new InvalidArgument(sprintf('Missing parameter "thingName" for "%s". The value cannot be null.', __CLASS__));
87+
throw new InvalidArgument(\sprintf('Missing parameter "thingName" for "%s". The value cannot be null.', __CLASS__));
8888
}
8989
$uri['thingName'] = $v;
9090
$uriString = '/things/' . rawurlencode($uri['thingName']) . '/shadow';

src/Input/UpdateThingShadowRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ public function request(): Request
101101
// Prepare URI
102102
$uri = [];
103103
if (null === $v = $this->thingName) {
104-
throw new InvalidArgument(sprintf('Missing parameter "thingName" for "%s". The value cannot be null.', __CLASS__));
104+
throw new InvalidArgument(\sprintf('Missing parameter "thingName" for "%s". The value cannot be null.', __CLASS__));
105105
}
106106
$uri['thingName'] = $v;
107107
$uriString = '/things/' . rawurlencode($uri['thingName']) . '/shadow';
108108

109109
// Prepare Body
110110
if (null === $v = $this->payload) {
111-
throw new InvalidArgument(sprintf('Missing parameter "payload" for "%s". The value cannot be null.', __CLASS__));
111+
throw new InvalidArgument(\sprintf('Missing parameter "payload" for "%s". The value cannot be null.', __CLASS__));
112112
}
113113
$body = $v;
114114

0 commit comments

Comments
 (0)