postmark-php icon indicating copy to clipboard operation
postmark-php copied to clipboard

Proposal to use regex to identify an integer to identify template id …

Open dataskills opened this issue 4 years ago • 0 comments

…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.

dataskills avatar Aug 09 '19 16:08 dataskills