-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
@@ -43,6 +44,7 @@ class Type | |||
self::BUILTIN_TYPE_ARRAY, | |||
self::BUILTIN_TYPE_CALLABLE, | |||
self::BUILTIN_TYPE_NULL, | |||
self::BUILTIN_TYPE_ITERABLE, |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, done
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, done
Thank you @dunglas. |
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
…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
…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
Add support for the
iterable
pseudo-type introduced in PHP 7.1.