File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
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.0.1
610
711### Changed
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function request(): Request
8181 // Prepare URI
8282 $ uri = [];
8383 if (null === $ v = $ this ->distributionId ) {
84- throw new InvalidArgument (sprintf ('Missing parameter "DistributionId" for "%s". The value cannot be null. ' , __CLASS__ ));
84+ throw new InvalidArgument (\ sprintf ('Missing parameter "DistributionId" for "%s". The value cannot be null. ' , __CLASS__ ));
8585 }
8686 $ uri ['DistributionId ' ] = $ v ;
8787 $ uriString = '/2019-03-26/distribution/ ' . rawurlencode ($ uri ['DistributionId ' ]) . '/invalidation ' ;
@@ -114,7 +114,7 @@ public function setInvalidationBatch(?InvalidationBatch $value): self
114114 private function requestBody (\DOMNode $ node , \DOMDocument $ document ): void
115115 {
116116 if (null === $ v = $ this ->invalidationBatch ) {
117- throw new InvalidArgument (sprintf ('Missing parameter "InvalidationBatch" for "%s". The value cannot be null. ' , __CLASS__ ));
117+ throw new InvalidArgument (\ sprintf ('Missing parameter "InvalidationBatch" for "%s". The value cannot be null. ' , __CLASS__ ));
118118 }
119119
120120 $ node ->appendChild ($ child = $ document ->createElement ('InvalidationBatch ' ));
You can’t perform that action at this time.
0 commit comments