From cd512c59de18adf2a16236baea0aa8e413258112 Mon Sep 17 00:00:00 2001 From: Sam Horn Date: Tue, 24 Aug 2021 20:53:21 +1000 Subject: [PATCH] Allow the `optional` field in MatchDto to be null If a tournament is configured to have a bronze medal match, the `optional` field for this match will be null instead of a boolean. --- src/Challonge/DTO/MatchDto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Challonge/DTO/MatchDto.php b/src/Challonge/DTO/MatchDto.php index ebf9dc3..29747a3 100644 --- a/src/Challonge/DTO/MatchDto.php +++ b/src/Challonge/DTO/MatchDto.php @@ -28,7 +28,7 @@ class MatchDto extends DataTransferObject public ?string $open_graph_image_file_name; public ?string $open_graph_image_content_type; public ?string $open_graph_image_file_size; - public bool $optional; + public ?bool $optional; public ?int $player1_id; public bool $player1_is_prereq_match_loser; public ?int $player1_prereq_match_id;