Skip to content

[PropertyInfo] Add support for the iterable type #24571

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

Closed
wants to merge 2 commits into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Oct 16, 2017

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets reported on Slack
License MIT
Doc PR symfony/symfony-docs#10319

Add support for the iterable pseudo-type introduced in PHP 7.1.

@@ -43,6 +44,7 @@ class Type
self::BUILTIN_TYPE_ARRAY,
self::BUILTIN_TYPE_CALLABLE,
self::BUILTIN_TYPE_NULL,
self::BUILTIN_TYPE_ITERABLE,
Copy link
Contributor

Choose a reason for hiding this comment

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

phpdoc of getBuiltinType() should be updated too :)

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, done

Copy link
Member

Choose a reason for hiding this comment

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

@dunglas Can you push your fix?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, done

@fabpot
Copy link
Member

fabpot commented Oct 16, 2017

Thank you @dunglas.

fabpot added a commit that referenced this pull request Oct 16, 2017
This PR was squashed before being merged into the 2.8 branch (closes #24571).

Discussion
----------

[PropertyInfo] Add support for the iterable type

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | reported on Slack
| License       | MIT
| Doc PR        | n/a

Add support for the `iterable` pseudo-type introduced in PHP 7.1.

Commits
-------

a73249d [PropertyInfo] Add support for the iterable type
@fabpot fabpot closed this Oct 16, 2017
@dunglas dunglas deleted the pinfo-iterable branch October 16, 2017 21:50
This was referenced Oct 30, 2017
This was referenced Nov 10, 2017
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Apr 16, 2018
…ted (fmata)

This PR was merged into the 2.8 branch.

Discussion
----------

[PropertyInfo] Complete the list of built-in types supported

symfony/symfony#24571 introduced `iterable` type but the doc has not been updated.

Commits
-------

8097eb9 Update property_info.rst
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Sep 11, 2018
…s initializable (dunglas, javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

[PropertyInfo] Add an extractor to guess if a property is initializable

symfony/symfony#26997
symfony/symfony#24571
Closes #10272.

Commits
-------

8415f96 Minor tweaks
eebca4a RST
f7ed144 [PropertyInfo] Add an extractor to guess if a property is initializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants