Correct return type of twig_date_converter

This commit is contained in:
Fred Cox
2019-12-09 17:55:45 +02:00
committed by Fabien Potencier
parent 3853841c9f
commit e927e859ea
+1 -1
View File
@@ -459,7 +459,7 @@ function twig_date_modify_filter(Environment $env, $date, $modifier)
* @param \DateTime|\DateTimeInterface|string|null $date A date
* @param \DateTimeZone|string|false|null $timezone The target timezone, null to use the default, false to leave unchanged
*
* @return \DateTime
* @return \DateTimeInterface
*/
function twig_date_converter(Environment $env, $date = null, $timezone = null)
{