Skip to content

Commit 0060dba

Browse files
committed
Set default value as not all invocations use 2 arguments
This unbreaks the language versions page. Visiting the page triggered the functions without the second argument.
1 parent 34afe4e commit 0060dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Twig/TwigExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function printtime(string|float|null $datetime, ?string $format = null, ?
215215
}
216216
}
217217

218-
public function printHumanTimeDiff(float|null $startTime, float|null $endTime): string
218+
public function printHumanTimeDiff(float|null $startTime = null, float|null $endTime = null): string
219219
{
220220
if ($startTime === null) {
221221
return '';

0 commit comments

Comments
 (0)