Skip to content

v4.0.1 - ClubReservation accepts numeric fields

Latest

Choose a tag to compare

@AustinW AustinW released this 02 Nov 06:37
393060c

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)