postmark-php
postmark-php copied to clipboard
Proposal to use regex to identify an integer to identify template id …
…instead of is_int(). PHP type coersion together with weak typing can have the unintended consequence of causing the template id to be a string according to is_int(). I believe as was my case that many template ids in the wild will be unrecognized as a template alias because it was identified as a string. Besides this, a template alias cannot begin with a number.