File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## NOT RELEASED
4
4
5
+ ### Changed
6
+
7
+ - Enable compiler optimization for the ` sprintf ` function.
8
+
5
9
## 1.1.2
6
10
7
11
### Changed
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function request(): Request
84
84
// Prepare URI
85
85
$ uri = [];
86
86
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__ ));
88
88
}
89
89
$ uri ['thingName ' ] = $ v ;
90
90
$ uriString = '/things/ ' . rawurlencode ($ uri ['thingName ' ]) . '/shadow ' ;
Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ public function request(): Request
101
101
// Prepare URI
102
102
$ uri = [];
103
103
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__ ));
105
105
}
106
106
$ uri ['thingName ' ] = $ v ;
107
107
$ uriString = '/things/ ' . rawurlencode ($ uri ['thingName ' ]) . '/shadow ' ;
108
108
109
109
// Prepare Body
110
110
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__ ));
112
112
}
113
113
$ body = $ v ;
114
114
You can’t perform that action at this time.
0 commit comments