Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  Add missing link in docs
  Correct return type of twig_date_converter
  • Loading branch information
fabpot committed Dec 9, 2019
2 parents fdb691a + 335dcad commit 46e232b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ This section describes the features added by the built-in extensions.

.. tip::

Read the chapter about extending Twig to learn how to create your own
extensions.
Read the chapter about :doc:`extending Twig <advanced>` to learn how to
create your own extensions.

Core Extension
~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ function twig_date_modify_filter(Environment $env, $date, $modifier)
* @param \DateTimeInterface|string|null $date A date or null to use the current time
* @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)
{
Expand Down

0 comments on commit 46e232b

Please sign in to comment.