From 44f77ecdac347030c8fc33fc799c2d1b3d0ebb18 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Sun, 28 Apr 2024 23:02:59 +0200 Subject: [PATCH] MNT add nullable return types to PHPDocs (#11192) --- src/ORM/FieldType/DBDate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ORM/FieldType/DBDate.php b/src/ORM/FieldType/DBDate.php index 19b83a5e2..b19633d87 100644 --- a/src/ORM/FieldType/DBDate.php +++ b/src/ORM/FieldType/DBDate.php @@ -90,7 +90,7 @@ class DBDate extends DBField /** * Returns the standard localised medium date * - * @return string + * @return ?string */ public function Nice() { @@ -263,7 +263,7 @@ class DBDate extends DBField * * @param string $format Format code string. See https://unicode-org.github.io/icu/userguide/format_parse/datetime * @param string $locale Custom locale to use (add to signature in 5.0) - * @return string The date in the requested format + * @return ?string The date in the requested format */ public function Format($format) {