Skip to content

Commit 7428a92

Browse files
authored
[ci skip] Be more specific about ext-dom incompatibilities in UPGRADING (#14024)
The previous text was put there before I decided to add the new classes. Therefore the only new feature that can affect BC is compareDocumentPosition(). Only when the declaration is incompatible can the user experience errors.
1 parent 2364054 commit 7428a92

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

UPGRADING

+4-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ PHP 8.4 UPGRADE NOTES
3131
. The type of PHP_DEBUG and PHP_ZTS constants changed to bool.
3232

3333
- DOM:
34-
. New methods and constants were added to some DOM classes. If you inherit
35-
from these and you happen to have a method or property with the same name,
36-
you might encounter errors if the declaration is incompatible.
37-
Consult sections 2. New Features and 6. New Functions for a list of
38-
newly implemented methods and constants.
34+
. Added DOMNode::compareDocumentPosition() and DOMNode::DOCUMENT_POSITION_*
35+
constants.
36+
If you have a method or constant with the same name, you might encounter errors
37+
if the declaration is incompatible.
3938
. Some DOM methods previously returned false or a PHP_ERR DOMException if a new
4039
node could not be allocated. They consistently throw an INVALID_STATE_ERR
4140
DOMException now. This situation is extremely unlikely though and probably

0 commit comments

Comments
 (0)