Skip to content

Commit

Permalink
Relative format numbers are less flexible now
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jan 11, 2023
1 parent 0f27fad commit cf220d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions appendices/migration82/incompatible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<methodname>DateTimeImmutable::createFromMutable</methodname> now has a tentative
return type of <type>static</type>, previously it was <type>DateTimeImmutable</type>.
</para>

<para>
<literal>number</literal> symbols in <link linkend="datetime.formats.relative">relative formats</link>
no longer accept a plus sign followed by a minus sign, e.g. <literal>+-2</literal>.
</para>
</sect2>

<sect2 xml:id="migration82.incompatible.odbc">
Expand Down
7 changes: 7 additions & 0 deletions reference/datetime/formats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,13 @@ object(DateTimeImmutable)#1 (3) {
</thead>
<tbody>
<row>
<entry>8.2.0</entry>
<entry>
<literal>number</literal> no longer accepts a plus sign followed by a minus sign,
e.g. <literal>+-2</literal>.
</entry>
</row>
<row>
<entry>7.0.8</entry>
<entry>
Weeks always start on monday. Formerly, sunday would also be considered
Expand Down

0 comments on commit cf220d0

Please sign in to comment.