Skip to content

Commit

Permalink
Merge pull request #48 from eschmar/develop
Browse files Browse the repository at this point in the history
Release v2.0.1
  • Loading branch information
eschmar authored Mar 4, 2022
2 parents ca9332e + f923711 commit 2a7b78f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Configuration implements ConfigurationInterface

/**
* {@inheritdoc}
* @return TreeBuilder
*/
public function getConfigTreeBuilder()
{
Expand Down
2 changes: 1 addition & 1 deletion Twig/TimeAgoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getFilters()
* @return string
* @author Marcel Eschmann, @eschmar
**/
public function agoFilter(\DateTime $date, $format = null)
public function agoFilter(\DateTimeInterface $date, $format = null)
{
$diff = time() - $date->format('U');
$format = $format ? $format : $this->format;
Expand Down

0 comments on commit 2a7b78f

Please sign in to comment.