[doc-en] master: Document the getLastErrors() return value change in the PHP 8.2 migration guide (#6107)

From: Date: Wed, 18 Nov 2026 13:42:08 +0000
Subject: [doc-en] master: Document the getLastErrors() return value change in the PHP 8.2 migration guide (#6107)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23976@lists.php.net to get a copy of this message
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: lacatoire Date: 2026-11-18T14:42:04+01:00 Commit: https://github.com/php/doc-en/commit/97ec75e6709ebc47dbcdacbc1c373c6eb57d657b Raw diff: https://github.com/php/doc-en/commit/97ec75e6709ebc47dbcdacbc1c373c6eb57d657b.diff Document the getLastErrors() return value change in the PHP 8.2 migration guide (#6107) Changed paths: M appendices/migration82/incompatible.xml Diff: diff --git a/appendices/migration82/incompatible.xml b/appendices/migration82/incompatible.xml index 147f236dbaae..388d2c98615b 100644 --- a/appendices/migration82/incompatible.xml +++ b/appendices/migration82/incompatible.xml @@ -19,6 +19,12 @@ <literal>number</literal> symbols in <link linkend="datetime.formats.relative">relative formats</link> no longer accept multiple signs, e.g. <literal>+-2</literal>. </para> + + <simpara> + <methodname>DateTime::getLastErrors</methodname> and + <methodname>DateTimeImmutable::getLastErrors</methodname> now return &false; + when there are no warnings or errors, previously they always returned an array. + </simpara> </sect2> <sect2 xml:id="migration82.incompatible.odbc">

« previous php.doc.cvs (#23976) next »