From fc85555d0c435bf749e48296f88b2464a23f39d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 29 Sep 2025 12:31:30 +0200 Subject: [PATCH] fix: Fix phpdoc typing for IL10N::l $data parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The implementation supports passing null and our code is using that, reflect it in the public API. Signed-off-by: Côme Chilliet --- lib/private/L10N/L10N.php | 2 +- lib/public/IL10N.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/L10N/L10N.php b/lib/private/L10N/L10N.php index 50db373a65d..16bdf884993 100644 --- a/lib/private/L10N/L10N.php +++ b/lib/private/L10N/L10N.php @@ -117,7 +117,7 @@ class L10N implements IL10N { /** * Localization * @param string $type Type of localization - * @param \DateTime|int|string $data parameters for this localization + * @param \DateTime|int|string|null $data parameters for this localization * @param array $options * @return string|int|false * diff --git a/lib/public/IL10N.php b/lib/public/IL10N.php index 9f7dedc5ff2..c4a64e37174 100644 --- a/lib/public/IL10N.php +++ b/lib/public/IL10N.php @@ -50,7 +50,7 @@ interface IL10N { /** * Localization * @param string $type Type of localization - * @param \DateTime|int|string $data parameters for this localization + * @param \DateTime|int|string|null $data parameters for this localization * @param array $options currently supports following options: * - 'width': handed into \Punic\Calendar::formatDate as second parameter * @return string|int|false