Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed DateTimeInterface description. #1414

Merged
merged 3 commits into from
Apr 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions doc/reference/annotations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,20 +406,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). |
scyzoryck marked this conversation as resolved.
Show resolved Hide resolved
| | 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