klaviyo / php-klaviyo

PHP wrapper for the Klaviyo API
59 stars 47 forks source link

Exception When Time Isn't Provided #23

Closed cbarranco closed 3 years ago

cbarranco commented 4 years ago

The change to EventModel in commit 8d73402 in PR #19 removes the check for $config['time'] being empty. Per the documentation, time is not a required parameter so I believe this change creates a new bug. I am getting an exception when attempting to track an event because I am not providing time, and the call to is_int($config['time']) is throwing an undefined index PHP error.

remstone7 commented 4 years ago

yes adding this in #24

remstone7 commented 3 years ago

resolved in 2.2.2