Datepoint::createFromFormat declaration issue with PHP 7.1
ilianiv opened this issue · comments
Iliyan Ivanov commented
Bug Report
Information | Description |
---|---|
Version | 4.3.0 |
PHP version | 7.1.25 |
OS Platform | Ubuntu 16.04.5 LTS |
Summary
After upgrade league/period (4.0.1 => 4.3.0) I've got this warning:
Declaration of League\Period\Datepoint::createFromFormat($format, $datetime, ?DateTimeZone $timezone = NULL) should be compatible with DateTimeImmutable::createFromFormat($format, $time, $object = NULL)
Standalone code, or other way to reproduce the problem
Here is a dummy DateTimeImmutable extender class simulating Datepoint class in a playground
https://www.tehplayground.com/nvl4opycmrAOJbIt
ignace nyamagana butera commented
ignace nyamagana butera commented
new release version 4.3.1 with the fix included