gilek / ewus

Library to simplify communication with the eWUŚ system.
MIT License
3 stars 9 forks source link

PHP 8.2 DateTimeImmutable compatibility fix #7

Closed bbprojectnet closed 1 year ago

bbprojectnet commented 1 year ago

According to: https://www.php.net/manual/en/datetimeimmutable.getlasterrors.php if DateTimeImmutable::getLastErrors() returns false there is no errors at all. In PHP 8.2 false is returned when no errors (unlike version <=8.1 where an array is always returned), which leads to the entire library not working properly.

bbprojectnet commented 1 year ago

@gilek @kwypchlo