DateInterval::days is guaranteed to be int if it was created by DateTime::diff(). But if it is compared with anything, then phpstan thinks it becomes float|int.
To reproduce:
https://phpstan.org/r/3b785a03-c6e8-4c2c-8112-13b2d3369551
Correct behavior without comparison:
https://phpstan.org/r/ffa27f53-1a00-4022-8be1-227d7503759b