lkaybob / php-fcm-v1

Implementation of Firebase Cloud Messaging HTTP v1 API in PHP
https://packagist.org/packages/lkaybob/php-fcm-v1
MIT License
12 stars 14 forks source link

Build Failing in PHP@7.2.12 #3

Closed lkaybob closed 4 years ago

lkaybob commented 5 years ago

Build is failing, since PHP@7.2.12 has been released. It seem that timelib has been updated inside the released PHP, and I am working on this issue.

lkaybob commented 4 years ago

Starting PHP@7.1, DateTime::__construct fills in microseconds actual value, not 0000. https://www.php.net/manual/en/datetime.construct.php https://github.com/briannesbitt/Carbon/issues/1503

As a workaround, setTimeToLive methods now rounds up by seconds. i.e.) If DateTime::__contruct returns current time as "2019-07-17 06:21:04.693098", current time would be round up as "2019-07-17 06:21:05.000000"

lkaybob commented 4 years ago

Resolved in #4 .