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

More fixes to UPGRADING #16415

Closed
wants to merge 1 commit into from
Closed

More fixes to UPGRADING #16415

wants to merge 1 commit into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 13, 2024

I don't understand why we added the following note:

If you have a method or constant with the same name, you might encounter errors if the declaration is incompatible.

As this is "standard", if the migration guide should mention this then it should just link to the new functions, classes, and constant pages. As having this is a "generic" incompatibility.

@Girgias Girgias requested a review from cmb69 October 13, 2024 15:34
Girgias added a commit to Girgias/doc-en that referenced this pull request Oct 13, 2024
@@ -57,10 +49,6 @@ PHP 8.4 UPGRADE NOTES
should be replaced with checks for `false`.

- DOM:
. Added DOMNode::compareDocumentPosition() and DOMNode::DOCUMENT_POSITION_*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added because last time some stuff got added, I got a complaint that adding the $id property breaks BC because someone was having a user class that implemented $id (differently).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added because last time some stuff got added, I got a complaint that adding the $id property breaks BC because someone was having a user class that implemented $id (differently).

Okay, I'll make a note to add a generic warning about this in the incompatibility page.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good to me, but see one comment below.

UPGRADING Outdated
Comment on lines 1007 to 1014
- GMP:
. Casting a GMP object to bool changed so that 0 becomes false and everything else
becomes true.
RFC: https://wiki.php.net/rfc/fix_up_bcmath_number_class
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this one; might better be left in the incompatible section.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is that it wasn't possible to cast an instance of a GMP object to bool, it would trigger a E_RECOVERABLE_ERROR diagnostic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should just reword it like I did in the migration guide PR.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Girgias Girgias closed this in da4eab6 Oct 13, 2024
@Girgias Girgias deleted the 8.4-upgrading-3 branch October 13, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants