Skip to content

Commit

Permalink
Allow the optional field in MatchDto to be null
Browse files Browse the repository at this point in the history
If a tournament is configured to have a bronze medal match, the `optional` field for this match will be null instead of a boolean.
  • Loading branch information
clamburger authored Aug 24, 2021
1 parent ed5ea21 commit cd512c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Challonge/DTO/MatchDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd512c5

Please sign in to comment.