@@ -93,7 +93,7 @@ class Message
9393 * @param int $type Value of the message type field
9494 * @throws \RangeException When the supplied message type is outside the valid range 0 - 1
9595 */
96- public function __construct (RecordCollectionFactory $ recordCollectionFactory , int $ type = null )
96+ public function __construct (RecordCollectionFactory $ recordCollectionFactory , ? int $ type = null )
9797 {
9898 $ this ->questionRecords = $ recordCollectionFactory ->create (RecordTypes::QUESTION );
9999 $ this ->answerRecords = $ recordCollectionFactory ->create (RecordTypes::RESOURCE );
@@ -186,7 +186,7 @@ public function setOpCode(int $opCode)
186186 * @param bool $newValue The new value
187187 * @return bool The old value
188188 */
189- public function isAuthoritative (bool $ newValue = null ): bool
189+ public function isAuthoritative (? bool $ newValue = null ): bool
190190 {
191191 $ result = $ this ->authoritative ;
192192
@@ -203,7 +203,7 @@ public function isAuthoritative(bool $newValue = null): bool
203203 * @param bool $newValue The new value
204204 * @return bool The old value
205205 */
206- public function isTruncated (bool $ newValue = null ): bool
206+ public function isTruncated (? bool $ newValue = null ): bool
207207 {
208208 $ result = $ this ->truncated ;
209209
@@ -220,7 +220,7 @@ public function isTruncated(bool $newValue = null): bool
220220 * @param bool $newValue The new value
221221 * @return bool The old value
222222 */
223- public function isRecursionDesired (bool $ newValue = null ): bool
223+ public function isRecursionDesired (? bool $ newValue = null ): bool
224224 {
225225 $ result = $ this ->recursionDesired ;
226226
@@ -237,7 +237,7 @@ public function isRecursionDesired(bool $newValue = null): bool
237237 * @param bool $newValue The new value
238238 * @return bool The old value
239239 */
240- public function isRecursionAvailable (bool $ newValue = null ): bool
240+ public function isRecursionAvailable (? bool $ newValue = null ): bool
241241 {
242242 $ result = $ this ->recursionAvailable ;
243243
0 commit comments