bug #1533 Make date_modify work with DateTimeImmutable (globin)
authorFabien Potencier <fabien.potencier@gmail.com>
Sat, 11 Oct 2014 20:13:21 +0000 (22:13 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Sat, 11 Oct 2014 20:13:21 +0000 (22:13 +0200)
commit8a36022dde38dcb4ca70f3f5748ce32f9a37711f
tree497c4d7e8c647f697f569f5406242b7ed9bf40df
parentd3eda6aedd38950acc2019abc02a9f92196f5395
parenta5fe46fce7d965244a99cb5b75c4f44f33918bcd
bug #1533 Make date_modify work with DateTimeImmutable (globin)

This PR was squashed before being merged into the 1.16-dev branch (closes #1533).

Discussion
----------

Make date_modify work with DateTimeImmutable

Use the return value of `$date->modify` because `DateTimeImmutable::modify`
returns the modified object and does not modify the object modify was
called on.

Commits
-------

a5fe46f Make date_modify work with DateTimeImmutable