Skip to content

Commit ccee44e

Browse files
committed
Updated the $datetime parameter type
1 parent 140f015 commit ccee44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormatDate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private function compile(string $dateTime, string $format)
2424
PHP;
2525
}
2626

27-
private function evaluate(array $context, string $dateTime, string $format)
27+
private function evaluate(array $context, \DateTimeInterface $dateTime, string $format)
2828
{
2929
return $dateTime->format($format);
3030
}

0 commit comments

Comments
 (0)