@@ -148,7 +148,7 @@ public function setRedelivered(bool $redelivered): void
148148 $ this ->redelivered = $ redelivered ;
149149 }
150150
151- public function setReplyTo (string $ replyTo = null ): void
151+ public function setReplyTo (? string $ replyTo = null ): void
152152 {
153153 $ this ->setHeader ('reply_to ' , $ replyTo );
154154 }
@@ -163,7 +163,7 @@ public function getPriority(): ?int
163163 return $ this ->priority ;
164164 }
165165
166- public function setPriority (int $ priority = null ): void
166+ public function setPriority (? int $ priority = null ): void
167167 {
168168 $ this ->priority = $ priority ;
169169 }
@@ -176,7 +176,7 @@ public function getDeliveryDelay(): ?int
176176 /**
177177 * Set delay in milliseconds.
178178 */
179- public function setDeliveryDelay (int $ deliveryDelay = null ): void
179+ public function setDeliveryDelay (? int $ deliveryDelay = null ): void
180180 {
181181 $ this ->deliveryDelay = $ deliveryDelay ;
182182 }
@@ -192,12 +192,12 @@ public function getTimeToLive(): ?int
192192 /**
193193 * Set time to live in milliseconds.
194194 */
195- public function setTimeToLive (int $ timeToLive = null ): void
195+ public function setTimeToLive (? int $ timeToLive = null ): void
196196 {
197197 $ this ->timeToLive = $ timeToLive ;
198198 }
199199
200- public function setCorrelationId (string $ correlationId = null ): void
200+ public function setCorrelationId (? string $ correlationId = null ): void
201201 {
202202 $ this ->setHeader ('correlation_id ' , $ correlationId );
203203 }
@@ -207,7 +207,7 @@ public function getCorrelationId(): ?string
207207 return $ this ->getHeader ('correlation_id ' , null );
208208 }
209209
210- public function setMessageId (string $ messageId = null ): void
210+ public function setMessageId (? string $ messageId = null ): void
211211 {
212212 $ this ->setHeader ('message_id ' , $ messageId );
213213 }
@@ -224,7 +224,7 @@ public function getTimestamp(): ?int
224224 return null === $ value ? null : $ value ;
225225 }
226226
227- public function setTimestamp (int $ timestamp = null ): void
227+ public function setTimestamp (? int $ timestamp = null ): void
228228 {
229229 $ this ->setHeader ('timestamp ' , $ timestamp );
230230 }
@@ -244,7 +244,7 @@ public function getRedeliverAfter(): int
244244 return $ this ->redeliverAfter ;
245245 }
246246
247- public function setRedeliverAfter (int $ redeliverAfter = null ): void
247+ public function setRedeliverAfter (? int $ redeliverAfter = null ): void
248248 {
249249 $ this ->redeliverAfter = $ redeliverAfter ;
250250 }
@@ -254,7 +254,7 @@ public function getPublishedAt(): ?int
254254 return $ this ->publishedAt ;
255255 }
256256
257- public function setPublishedAt (int $ publishedAt = null ): void
257+ public function setPublishedAt (? int $ publishedAt = null ): void
258258 {
259259 $ this ->publishedAt = $ publishedAt ;
260260 }
0 commit comments