@@ -125,7 +125,7 @@ public function isRedelivered(): bool
125
125
return $ this ->redelivered ;
126
126
}
127
127
128
- public function setCorrelationId (string $ correlationId = null ): void
128
+ public function setCorrelationId (? string $ correlationId = null ): void
129
129
{
130
130
$ this ->setHeader ('correlation_id ' , $ correlationId );
131
131
}
@@ -135,7 +135,7 @@ public function getCorrelationId(): ?string
135
135
return $ this ->getHeader ('correlation_id ' );
136
136
}
137
137
138
- public function setMessageId (string $ messageId = null ): void
138
+ public function setMessageId (? string $ messageId = null ): void
139
139
{
140
140
$ this ->setHeader ('message_id ' , $ messageId );
141
141
}
@@ -152,12 +152,12 @@ public function getTimestamp(): ?int
152
152
return $ value === null ? null : (int ) $ value ;
153
153
}
154
154
155
- public function setTimestamp (int $ timestamp = null ): void
155
+ public function setTimestamp (? int $ timestamp = null ): void
156
156
{
157
157
$ this ->setHeader ('timestamp ' , $ timestamp );
158
158
}
159
159
160
- public function setReplyTo (string $ replyTo = null ): void
160
+ public function setReplyTo (? string $ replyTo = null ): void
161
161
{
162
162
$ this ->setHeader ('reply_to ' , $ replyTo );
163
163
}
@@ -167,7 +167,7 @@ public function getReplyTo(): ?string
167
167
return $ this ->getHeader ('reply_to ' );
168
168
}
169
169
170
- public function setContentType (string $ type = null ): void
170
+ public function setContentType (? string $ type = null ): void
171
171
{
172
172
$ this ->setHeader ('content_type ' , $ type );
173
173
}
@@ -177,7 +177,7 @@ public function getContentType(): ?string
177
177
return $ this ->getHeader ('content_type ' );
178
178
}
179
179
180
- public function setContentEncoding (string $ encoding = null ): void
180
+ public function setContentEncoding (? string $ encoding = null ): void
181
181
{
182
182
$ this ->setHeader ('content_encoding ' , $ encoding );
183
183
}
@@ -192,12 +192,12 @@ public function getPriority(): ?int
192
192
return $ this ->getHeader ('priority ' );
193
193
}
194
194
195
- public function setPriority (int $ priority = null ): void
195
+ public function setPriority (? int $ priority = null ): void
196
196
{
197
197
$ this ->setHeader ('priority ' , $ priority );
198
198
}
199
199
200
- public function setDeliveryMode (int $ deliveryMode = null ): void
200
+ public function setDeliveryMode (? int $ deliveryMode = null ): void
201
201
{
202
202
$ this ->setHeader ('delivery_mode ' , $ deliveryMode );
203
203
}
@@ -207,7 +207,7 @@ public function getDeliveryMode(): ?int
207
207
return $ this ->getHeader ('delivery_mode ' );
208
208
}
209
209
210
- public function setExpiration (int $ expiration = null ): void
210
+ public function setExpiration (? int $ expiration = null ): void
211
211
{
212
212
// expiration is a string
213
213
// https://www.rabbitmq.com/amqp-0-9-1-reference.html#domain.shortstr
@@ -227,7 +227,7 @@ public function getDeliveryTag(): ?int
227
227
return $ this ->deliveryTag ;
228
228
}
229
229
230
- public function setDeliveryTag (int $ deliveryTag = null ): void
230
+ public function setDeliveryTag (? int $ deliveryTag = null ): void
231
231
{
232
232
$ this ->deliveryTag = $ deliveryTag ;
233
233
}
@@ -237,7 +237,7 @@ public function getConsumerTag(): ?string
237
237
return $ this ->consumerTag ;
238
238
}
239
239
240
- public function setConsumerTag (string $ consumerTag = null ): void
240
+ public function setConsumerTag (? string $ consumerTag = null ): void
241
241
{
242
242
$ this ->consumerTag = $ consumerTag ;
243
243
}
@@ -267,7 +267,7 @@ public function getRoutingKey(): ?string
267
267
return $ this ->routingKey ;
268
268
}
269
269
270
- public function setRoutingKey (string $ routingKey = null ): void
270
+ public function setRoutingKey (? string $ routingKey = null ): void
271
271
{
272
272
$ this ->routingKey = $ routingKey ;
273
273
}
0 commit comments