paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.24k stars 108 forks source link

Allow DateTimeImmutable everywhere #93

Closed djmarland closed 4 years ago

djmarland commented 5 years ago

Building upon the work done in https://github.com/paragonie/paseto/pull/64 this accepts DateTimeInterface in all methods that previously accepted DateTime, so that DateTimeImmutable can now be used. None of the methods perform any manipulation on the incoming date object so this should be safe.

djmarland commented 5 years ago

Hello. Just checking in, in case this was missed.

Slamdunk commented 4 years ago

Hi @paragonie-scott may this be tagged, please?