Closed ahallhognason closed 3 years ago
@brendt I extended the existing test for determining if two periods touched. I hope that's alright.
Looks good to me, but please remove all styling changes and keep the trailing commas.
I removed the last commit that removed the trailing commas. It might be worth dropping support for PHP 7.1 and 7.2 if you want to keep trailing commas, since those versions of PHP will break on this package.
I'll fix that on master, thanks!
Fixed with 1.5.1: https://github.com/spatie/period/releases/tag/1.5.1
Would you mind changing the label to hacktoberfest-accepted
? It looks like they are quite particular on the label.
There you go!
Closes #67
I have updated the tests to add a check with
Precision::SECOND
and confirmed that the updatedtouchesWith
method now supports multiple precisions (seconds, days, etc).