fix: Fix phpdoc typing for IL10N::l $data parameter

The implementation supports passing null and our code is using that,
 reflect it in the public API.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/55404/head
Côme Chilliet 1 week ago
parent 73447618e7
commit fc85555d0c
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      lib/private/L10N/L10N.php
  2. 2
      lib/public/IL10N.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
*

@ -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

Loading…
Cancel
Save