Skip to content

Commit

Permalink
Merge pull request #1414 from bkonetzny/patch-1
Browse files Browse the repository at this point in the history
Fixed DateTimeInterface description.
  • Loading branch information
scyzoryck committed Apr 21, 2023
2 parents b265999 + 0884c70 commit b4e6128
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions doc/reference/annotations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
+------------------------------------------------------------+--------------------------------------------------+
Expand Down

0 comments on commit b4e6128

Please sign in to comment.