Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 1, 2024
1 parent f4216a0 commit 2920b39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,9 @@ public static function sprintf($format, ...$values): string
* @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|\DateTimeImmutable
*
* @internal
*/
public function convertDate($date = null, $timezone = null)
public function convertDate($date = null, $timezone = null): \DateTime|\DateTimeImmutable
{
// determine the timezone
if (false !== $timezone) {
Expand Down Expand Up @@ -567,7 +565,7 @@ public static function round($value, $precision = 0, $method = 'common')
}

/**
* Number format filter.
* Formats a number.
*
* All of the formatting options can be left null, in that case the defaults will
* be used. Supplying any of the parameters will override the defaults set in the
Expand Down

0 comments on commit 2920b39

Please sign in to comment.