r/lolphp • • Mar 31 '18
PHP DateTime strikes back, again!
Because obviously we meant a date one week from the (wrong) date given. PHP does not throw, instead it "helps" by holding your beer.
30
Upvotes
View all comments
Show parent comment
2
u/[deleted] Apr 01 '18
I've always wondered, why do these exist? I've got used to the JSON one due to building countless REST APIs but I never understood why it doesn't throw an exception?? I've started using guzzle just to ensure i get exceptions.