File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
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.3.1
6
10
7
11
### Changed
Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ private function requestBody(): array
114
114
{
115
115
$ payload = [];
116
116
if (null === $ v = $ this ->deliveryStreamName ) {
117
- throw new InvalidArgument (sprintf ('Missing parameter "DeliveryStreamName" for "%s". The value cannot be null. ' , __CLASS__ ));
117
+ throw new InvalidArgument (\ sprintf ('Missing parameter "DeliveryStreamName" for "%s". The value cannot be null. ' , __CLASS__ ));
118
118
}
119
119
$ payload ['DeliveryStreamName ' ] = $ v ;
120
120
if (null === $ v = $ this ->records ) {
121
- throw new InvalidArgument (sprintf ('Missing parameter "Records" for "%s". The value cannot be null. ' , __CLASS__ ));
121
+ throw new InvalidArgument (\ sprintf ('Missing parameter "Records" for "%s". The value cannot be null. ' , __CLASS__ ));
122
122
}
123
123
124
124
$ index = -1 ;
Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ private function requestBody(): array
108
108
{
109
109
$ payload = [];
110
110
if (null === $ v = $ this ->deliveryStreamName ) {
111
- throw new InvalidArgument (sprintf ('Missing parameter "DeliveryStreamName" for "%s". The value cannot be null. ' , __CLASS__ ));
111
+ throw new InvalidArgument (\ sprintf ('Missing parameter "DeliveryStreamName" for "%s". The value cannot be null. ' , __CLASS__ ));
112
112
}
113
113
$ payload ['DeliveryStreamName ' ] = $ v ;
114
114
if (null === $ v = $ this ->record ) {
115
- throw new InvalidArgument (sprintf ('Missing parameter "Record" for "%s". The value cannot be null. ' , __CLASS__ ));
115
+ throw new InvalidArgument (\ sprintf ('Missing parameter "Record" for "%s". The value cannot be null. ' , __CLASS__ ));
116
116
}
117
117
$ payload ['Record ' ] = $ v ->requestBody ();
118
118
You can’t perform that action at this time.
0 commit comments