brick / date-time

Date and time library for PHP
MIT License
323 stars 29 forks source link

Implement JsonSerializable on value classes #19

Closed kagmole closed 4 years ago

kagmole commented 4 years ago

Implement the interface JsonSerializable on value classes inside src/.

The implementation is dead simple: I just reuse the __toString() of each class.

The tests are using the providerToString providers as well. I am not sure about this ; do I create a new provider for each one instead?

In addition, I added a testToString test for LocalDateTimeTest.

BenMorel commented 4 years ago

LGTM, thank you!

BenMorel commented 4 years ago

Released as 0.1.15.