Skip to content

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Feb 26, 2021

Now properties are ordered according to order of declaration and inheritance (properties of base class are gong to be before the child properties). This order is also consistent with layout of properties in zend_object structure.

This order is more consistent by its own.

This also allows simple and consistent implementations of FOREACH, serialize(), json_encode(), etc without rebuilding properties HashTable.

…arison, etc.

Now properties are ordered according to their layout in zend_object structure.
@dstogov dstogov requested review from nikic and sgolemon February 26, 2021 20:17
@dstogov
Copy link
Member Author

dstogov commented Feb 26, 2021

@nikic please take a look. This is a breake, but a proper breake ...

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

LGTM, but please add a note to UPGRADING that the order changed.

@nikic
Copy link
Member

nikic commented Mar 1, 2021

This was merged in b0c7ea4.

@nikic nikic closed this Mar 1, 2021
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.

2 participants