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 2
2
3
3
## NOT RELEASED
4
4
5
+ ### Changed
6
+
7
+ - Enable compiler optimization for the ` sprintf ` function.
8
+
5
9
## 1.0.1
6
10
7
11
### Changed
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function request(): Request
81
81
// Prepare URI
82
82
$ uri = [];
83
83
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__ ));
85
85
}
86
86
$ uri ['DistributionId ' ] = $ v ;
87
87
$ uriString = '/2019-03-26/distribution/ ' . rawurlencode ($ uri ['DistributionId ' ]) . '/invalidation ' ;
@@ -114,7 +114,7 @@ public function setInvalidationBatch(?InvalidationBatch $value): self
114
114
private function requestBody (\DOMNode $ node , \DOMDocument $ document ): void
115
115
{
116
116
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__ ));
118
118
}
119
119
120
120
$ node ->appendChild ($ child = $ document ->createElement ('InvalidationBatch ' ));
You can’t perform that action at this time.
0 commit comments