diff --git a/doc/reference/annotations.rst b/doc/reference/annotations.rst index cf5fbcd03..a88c4966f 100644 --- a/doc/reference/annotations.rst +++ b/doc/reference/annotations.rst @@ -431,20 +431,28 @@ Available Types: | | string (''). DeserializeFormats can either be a | | | string or an array of string. | +------------------------------------------------------------+--------------------------------------------------+ -| DateTimeInterface | PHP's DateTimeImmutable object (default format*/ | -| | timezone). | -+------------------------------------------------------------+--------------------------------------------------+ -| DateTimeInterface<'format'> | PHP's DateTimeImmutable object (custom format/ | -| | default timezone) | -+------------------------------------------------------------+--------------------------------------------------+ -| DateTimeInterface<'format', 'zone'> | PHP's DateTimeImmutable object (custom format/ | -| | timezone) | -+------------------------------------------------------------+--------------------------------------------------+ -| DateTimeInterface<'format', 'zone', 'deserializeFormats'> | PHP's DateTimeImmutable object (custom format/ | -| | timezone/deserialize format). If you do not want | -| | to specify a specific timezone, use an empty | -| | string (''). DeserializeFormats can either be a | -| | string or an array of string. | +| DateTimeInterface | PHP's DateTimeInterface interface (default | +| | format*/timezone). | +| | Data will be always deserialised into | +| | `\DateTime` object | ++------------------------------------------------------------+--------------------------------------------------+ +| DateTimeInterface<'format'> | PHP's DateTimeInterface interface (custom | +| | format/default timezone) | +| | Data will be deserialised into | +| | `\\DateTime` object | ++------------------------------------------------------------+--------------------------------------------------+ +| DateTimeInterface<'format', 'zone'> | PHP's DateTimeInterface interface (custom | +| | format/timezone) | +| | Data will be deserialised into | +| | `\\DateTime` object | ++------------------------------------------------------------+--------------------------------------------------+ +| DateTimeInterface<'format', 'zone', 'deserializeFormats'> | PHP's DateTimeInterface interface (custom | +| | format/timezone/deserialize format). If you do | +| | not want to specify a specific timezone, use an | +| | empty string (''). DeserializeFormats can either | +| | be a string or an array of string. | +| | Data will be deserialised into | +| | `\\DateTime` object | +------------------------------------------------------------+--------------------------------------------------+ | DateInterval | PHP's DateInterval object using ISO 8601 format | +------------------------------------------------------------+--------------------------------------------------+