I've had tons of failing tests on one of my projects at the start of the year. The root of the problem was some hardcoded dates (that ends in 2018) for some "end of the year" edge cases. Not really tough and/or interesting, but a good reminder to brush up on date/datetime handling (I really recommend Carbon for PHP projects). But still, it's literally a problem brought by the new year lol.
I've had tons of failing tests on one of my projects at the start of the year. The root of the problem was some hardcoded dates (that ends in 2018) for some "end of the year" edge cases. Not really tough and/or interesting, but a good reminder to brush up on date/datetime handling (I really recommend Carbon for PHP projects). But still, it's literally a problem brought by the new year lol.
Haha. That's the problem with hard coding. It will always end up biting you in the butt when you least expect it.