Skip to content

v3.1.2 - ClubReservation accepts numeric fields

Choose a tag to compare

@AustinW AustinW released this 02 Nov 06:37
· 3 commits to main since this release

USAG sends ClubContactID, MeetContactID, ClubContactPhone and MeetContactPhone as JSON numbers. ClubReservation::fromArray() passed them unchanged into ?string parameters, so reservations()->clubs() threw a TypeError for every live sanction.

Fixed

  • Every ClubReservation text field now casts JSON numbers to strings. Empty values ('', null, 0) stay null, as before. (#6, #7)

Backport to the 3.x line (release/3.x). No breaking changes from v3.1.1.