Skip to content

Typed Properties - #3313

Closed
nikic wants to merge 420 commits into
php:masterfrom
bwoebi:typed_ref_properties
Closed

Typed Properties#3313
nikic wants to merge 420 commits into
php:masterfrom
bwoebi:typed_ref_properties

Conversation

@nikic

Copy link
Copy Markdown
Member

This is the implementation for the new typed properties RFC.

The implementation is not quite ready for review yet, there are still a number of open issues and some behavior edge-cases regarding references may still change.

dstogov added 30 commits May 25, 2016 10:45
…d_object_fetch_property_type_info_ex() into zend_object_fetch_property_type_info()
* master:
update NEWS
Expose missing flags from libzip at least >= 0.11.x
Fix typo in phpdbg help.
Add missing newlines to phpdbg's help for the run command.
Skip test which is 64bits only
update NEWS
fix test portability
prepare for 5.6.22RC1
nikic added 23 commits January 3, 2019 14:40
We also have to remove ref sources for the immutable class case.
This is handled by the calling code in this case.
Also fix a bug in inference for object properties: We must check
that it's a non-static property, otherwise null becomes an additional
valid return value.
Based on reviewer comment.
This reverts commit 0cc95b8.
This has already been fixed in a different way in
3b830cf and is unrelated to
typed properties...
Still needs more work to make the assignment successful in more
cases.
Taken from PR php#3573, minus the foreach/iteration parts.
@nikic
nikicforce-pushed the typed_ref_properties branch from 7429cb1 to 5f7d376CompareJanuary 7, 2019 11:24
@nikicnikic mentioned this pull request Jan 7, 2019
@nikic

nikic commented Jan 7, 2019

Copy link
Copy Markdown
MemberAuthor

Closing this PR in favor of #3734, which is the same thing but squashed.

@nikicnikic closed this Jan 7, 2019
php-pulls pushed a commit that referenced this pull request Jan 11, 2019
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734, which is a squash of PR #3313.
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
Co-authored-by: Joe Watkins <krakjoe@php.net>
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
@ice6

ice6 commented Apr 3, 2020

Copy link
Copy Markdown

what an improvement!!!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

14 participants

@nikic@SammyK@weltling@lt@carusogabriel@yooouuri@bwoebi@Knele83@ice6@Ocramius@dstogov@motecshine@wbianchini@krakjoe