@@ -93,7 +93,7 @@ class Message
93
93
* @param int $type Value of the message type field
94
94
* @throws \RangeException When the supplied message type is outside the valid range 0 - 1
95
95
*/
96
- public function __construct (RecordCollectionFactory $ recordCollectionFactory , int $ type = null )
96
+ public function __construct (RecordCollectionFactory $ recordCollectionFactory , ? int $ type = null )
97
97
{
98
98
$ this ->questionRecords = $ recordCollectionFactory ->create (RecordTypes::QUESTION );
99
99
$ this ->answerRecords = $ recordCollectionFactory ->create (RecordTypes::RESOURCE );
@@ -186,7 +186,7 @@ public function setOpCode(int $opCode)
186
186
* @param bool $newValue The new value
187
187
* @return bool The old value
188
188
*/
189
- public function isAuthoritative (bool $ newValue = null ): bool
189
+ public function isAuthoritative (? bool $ newValue = null ): bool
190
190
{
191
191
$ result = $ this ->authoritative ;
192
192
@@ -203,7 +203,7 @@ public function isAuthoritative(bool $newValue = null): bool
203
203
* @param bool $newValue The new value
204
204
* @return bool The old value
205
205
*/
206
- public function isTruncated (bool $ newValue = null ): bool
206
+ public function isTruncated (? bool $ newValue = null ): bool
207
207
{
208
208
$ result = $ this ->truncated ;
209
209
@@ -220,7 +220,7 @@ public function isTruncated(bool $newValue = null): bool
220
220
* @param bool $newValue The new value
221
221
* @return bool The old value
222
222
*/
223
- public function isRecursionDesired (bool $ newValue = null ): bool
223
+ public function isRecursionDesired (? bool $ newValue = null ): bool
224
224
{
225
225
$ result = $ this ->recursionDesired ;
226
226
@@ -237,7 +237,7 @@ public function isRecursionDesired(bool $newValue = null): bool
237
237
* @param bool $newValue The new value
238
238
* @return bool The old value
239
239
*/
240
- public function isRecursionAvailable (bool $ newValue = null ): bool
240
+ public function isRecursionAvailable (? bool $ newValue = null ): bool
241
241
{
242
242
$ result = $ this ->recursionAvailable ;
243
243
0 commit comments