From: Fabien Potencier Date: Sat, 11 Oct 2014 20:13:21 +0000 (+0200) Subject: bug #1533 Make date_modify work with DateTimeImmutable (globin) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8a36022dde38dcb4ca70f3f5748ce32f9a37711f;p=web%2Fkonrad%2Ftwig.git 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 --- 8a36022dde38dcb4ca70f3f5748ce32f9a37711f