From: Tobias Schultze Date: Tue, 14 Oct 2014 18:14:01 +0000 (+0200) Subject: Update phpdoc for date filter/function X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7b4c537c3b7422a413cfdd3c48f1685cb8d5aa0c;p=web%2Fkonrad%2Ftwig.git Update phpdoc for date filter/function --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 4c5ec75..50af07b 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -444,10 +444,10 @@ function twig_random(Twig_Environment $env, $values = null) * {{ post.published_at|date("m/d/Y") }} * * - * @param Twig_Environment $env A Twig_Environment instance - * @param DateTime|DateInterval|string $date A date - * @param string $format A format - * @param DateTimeZone|string $timezone A timezone + * @param Twig_Environment $env A Twig_Environment instance + * @param DateTime|DateTimeInterface|DateInterval|string $date A date + * @param string|null $format The target format, null to use the default + * @param DateTimeZone|string|null|false $timezone The target timezone, null to use the default, false to leave unchanged * * @return string The formatted date */ @@ -498,9 +498,9 @@ function twig_date_modify_filter(Twig_Environment $env, $date, $modifier) * {% endif %} * * - * @param Twig_Environment $env A Twig_Environment instance - * @param DateTime|string $date A date - * @param DateTimeZone|string $timezone A timezone + * @param Twig_Environment $env A Twig_Environment instance + * @param DateTime|DateTimeInterface|string|null $date A date + * @param DateTimeZone|string|null|false $timezone The target timezone, null to use the default, false to leave unchanged * * @return DateTime A DateTime instance */