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 22
33## NOT RELEASED
44
5+ ### Changed
6+
7+ - Enable compiler optimization for the ` sprintf ` function.
8+
59## 1.1.2
610
711### Changed
Original file line number Diff line number Diff 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 ' ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments