@@ -65,7 +65,7 @@ public function __construct(string $body = '', array $properties = [], array $he
6565 $ this ->redelivered = false ;
6666 }
6767
68- public function setId (string $ id = null ): void
68+ public function setId (? string $ id = null ): void
6969 {
7070 $ this ->id = $ id ;
7171 }
@@ -135,7 +135,7 @@ public function setRedelivered(bool $redelivered): void
135135 $ this ->redelivered = $ redelivered ;
136136 }
137137
138- public function setReplyTo (string $ replyTo = null ): void
138+ public function setReplyTo (? string $ replyTo = null ): void
139139 {
140140 $ this ->setHeader ('reply_to ' , $ replyTo );
141141 }
@@ -150,7 +150,7 @@ public function getPriority(): ?int
150150 return $ this ->priority ;
151151 }
152152
153- public function setPriority (int $ priority = null ): void
153+ public function setPriority (? int $ priority = null ): void
154154 {
155155 $ this ->priority = $ priority ;
156156 }
@@ -163,7 +163,7 @@ public function getDeliveryDelay(): ?int
163163 /**
164164 * In milliseconds.
165165 */
166- public function setDeliveryDelay (int $ deliveryDelay = null ): void
166+ public function setDeliveryDelay (? int $ deliveryDelay = null ): void
167167 {
168168 $ this ->deliveryDelay = $ deliveryDelay ;
169169 }
@@ -176,12 +176,12 @@ public function getTimeToLive(): ?int
176176 /**
177177 * In milliseconds.
178178 */
179- public function setTimeToLive (int $ timeToLive = null ): void
179+ public function setTimeToLive (? int $ timeToLive = null ): void
180180 {
181181 $ this ->timeToLive = $ timeToLive ;
182182 }
183183
184- public function setCorrelationId (string $ correlationId = null ): void
184+ public function setCorrelationId (? string $ correlationId = null ): void
185185 {
186186 $ this ->setHeader ('correlation_id ' , $ correlationId );
187187 }
@@ -191,7 +191,7 @@ public function getCorrelationId(): ?string
191191 return $ this ->getHeader ('correlation_id ' , null );
192192 }
193193
194- public function setMessageId (string $ messageId = null ): void
194+ public function setMessageId (? string $ messageId = null ): void
195195 {
196196 $ this ->setHeader ('message_id ' , $ messageId );
197197 }
@@ -208,7 +208,7 @@ public function getTimestamp(): ?int
208208 return null === $ value ? null : (int ) $ value ;
209209 }
210210
211- public function setTimestamp (int $ timestamp = null ): void
211+ public function setTimestamp (? int $ timestamp = null ): void
212212 {
213213 $ this ->setHeader ('timestamp ' , $ timestamp );
214214 }
@@ -221,7 +221,7 @@ public function getPublishedAt(): ?int
221221 /**
222222 * In milliseconds.
223223 */
224- public function setPublishedAt (int $ publishedAt = null ): void
224+ public function setPublishedAt (? int $ publishedAt = null ): void
225225 {
226226 $ this ->publishedAt = $ publishedAt ;
227227 }
0 commit comments