@@ -65,7 +65,7 @@ public function __construct(string $body = '', array $properties = [], array $he
65
65
$ this ->redelivered = false ;
66
66
}
67
67
68
- public function setId (string $ id = null ): void
68
+ public function setId (? string $ id = null ): void
69
69
{
70
70
$ this ->id = $ id ;
71
71
}
@@ -135,7 +135,7 @@ public function setRedelivered(bool $redelivered): void
135
135
$ this ->redelivered = $ redelivered ;
136
136
}
137
137
138
- public function setReplyTo (string $ replyTo = null ): void
138
+ public function setReplyTo (? string $ replyTo = null ): void
139
139
{
140
140
$ this ->setHeader ('reply_to ' , $ replyTo );
141
141
}
@@ -150,7 +150,7 @@ public function getPriority(): ?int
150
150
return $ this ->priority ;
151
151
}
152
152
153
- public function setPriority (int $ priority = null ): void
153
+ public function setPriority (? int $ priority = null ): void
154
154
{
155
155
$ this ->priority = $ priority ;
156
156
}
@@ -163,7 +163,7 @@ public function getDeliveryDelay(): ?int
163
163
/**
164
164
* In milliseconds.
165
165
*/
166
- public function setDeliveryDelay (int $ deliveryDelay = null ): void
166
+ public function setDeliveryDelay (? int $ deliveryDelay = null ): void
167
167
{
168
168
$ this ->deliveryDelay = $ deliveryDelay ;
169
169
}
@@ -176,12 +176,12 @@ public function getTimeToLive(): ?int
176
176
/**
177
177
* In milliseconds.
178
178
*/
179
- public function setTimeToLive (int $ timeToLive = null ): void
179
+ public function setTimeToLive (? int $ timeToLive = null ): void
180
180
{
181
181
$ this ->timeToLive = $ timeToLive ;
182
182
}
183
183
184
- public function setCorrelationId (string $ correlationId = null ): void
184
+ public function setCorrelationId (? string $ correlationId = null ): void
185
185
{
186
186
$ this ->setHeader ('correlation_id ' , $ correlationId );
187
187
}
@@ -191,7 +191,7 @@ public function getCorrelationId(): ?string
191
191
return $ this ->getHeader ('correlation_id ' , null );
192
192
}
193
193
194
- public function setMessageId (string $ messageId = null ): void
194
+ public function setMessageId (? string $ messageId = null ): void
195
195
{
196
196
$ this ->setHeader ('message_id ' , $ messageId );
197
197
}
@@ -208,7 +208,7 @@ public function getTimestamp(): ?int
208
208
return null === $ value ? null : (int ) $ value ;
209
209
}
210
210
211
- public function setTimestamp (int $ timestamp = null ): void
211
+ public function setTimestamp (? int $ timestamp = null ): void
212
212
{
213
213
$ this ->setHeader ('timestamp ' , $ timestamp );
214
214
}
@@ -221,7 +221,7 @@ public function getPublishedAt(): ?int
221
221
/**
222
222
* In milliseconds.
223
223
*/
224
- public function setPublishedAt (int $ publishedAt = null ): void
224
+ public function setPublishedAt (? int $ publishedAt = null ): void
225
225
{
226
226
$ this ->publishedAt = $ publishedAt ;
227
227
}
0 commit comments