Simple question can somebody explain what is happing in the code below.
Why are the results different?
var_dump(date_diff(new DateTime('2017-12-02'), new DateTime('2018-02-02'))->format('%R%d'));
var_dump(date_diff(new DateTime('2017-12-01'), new DateTime('2018-02-01'))->format('%R%d'));
//dumps string(2) "+0" string(2) "+1"