summaryrefslogtreecommitdiff
path: root/app/Date.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Date.php')
-rw-r--r--app/Date.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Date.php b/app/Date.php
index d7eff837cc..5197052242 100644
--- a/app/Date.php
+++ b/app/Date.php
@@ -98,7 +98,7 @@ class Date
*
* @return string
*/
- public function display(Tree $tree = null, string $date_format = null, bool $convert_calendars = false): string
+ public function display(Tree|null $tree = null, string|null $date_format = null, bool $convert_calendars = false): string
{
if ($tree instanceof Tree) {
$CALENDAR_FORMAT = $tree->getPreference('CALENDAR_FORMAT');