Spoje-NET / php-abraflexi

PHP Library for easy interaction with economic system AbraFlexi.
MIT License
24 stars 7 forks source link

Handle the empty datetime formats in the Date and DateTime classes #28

Closed petaak closed 1 year ago

petaak commented 1 year ago

From PHP 8.1, passing null to the DateTime constructor emits a deprecation notice (DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated). So we should handle the empty $format variable in Date and DateTime classes as suggested.

Vitexus commented 1 year ago

Thank You! The PHP8.1 Support is on the way.