DateInterval's properties are not reachable for dynamic inspection (\var_dump(), \print_r(), foreach, etc.)
Open
php5 incompatibility
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
The returned interval is empty but not NULL. The DateInterval object below has no members when it should have a 1 day difference.
```
$date1 = new DateTime("now");
$date2 = new DateTime("tomorrow");
$diff = $date1->diff($date2);
print_r($diff)
```
Contributor guide
Assessment
This issue has not been assessed yet.