Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PropertyInfo] Use iterators for PropertyInfoExtractor#21654

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromGuilhemN:PROPERTYINFO
Feb 18, 2017

Conversation

@GuilhemN
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Most of the time, when using the cache, the property info extractors are not used: the new iterator feature looks perfect to prevent their instantiation.

chalasr reacted with thumbs up emoji
* @param array $extractors
* @param string $method
* @param array $arguments
* @param array|\Traversable $extractors
Copy link
Member

Choose a reason for hiding this comment

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

iterable would describe it 😄

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

can we use it in php docs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, and wealready did :)

Copy link
ContributorAuthor

@GuilhemNGuilhemNFeb 17, 2017
edited
Loading

Choose a reason for hiding this comment

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

great! updated

@stof
Copy link
Member

👍
Status: reviewed

@stof
Copy link
Member

Actually, you need to add a conflict rule in FrameworkBundle, to forbid it to use an older property-info component (which would have an array typehint), if we don't have the conflict already

@GuilhemN
Copy link
ContributorAuthor

Indeed, thanks!

@dunglas
Copy link
Member

👍

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneFeb 18, 2017
@nicolas-grekas
Copy link
Member

Thank you@GuilhemN.

@nicolas-grekasnicolas-grekas merged commit38523a9 intosymfony:masterFeb 18, 2017
nicolas-grekas added a commit that referenced this pull requestFeb 18, 2017
… (GuilhemN)This PR was merged into the 3.3-dev branch.Discussion----------[PropertyInfo] Use iterators for PropertyInfoExtractor| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Most of the time, when using the cache, the property info extractors are not used: the new iterator feature looks perfect to prevent their instantiation.Commits-------38523a9 [PropertyInfo] Use iterators for PropertyInfoExtractor
@GuilhemNGuilhemN deleted the PROPERTYINFO branchFebruary 18, 2017 08:15
* @param PropertyTypeExtractorInterface[] $typeExtractors
* @param PropertyDescriptionExtractorInterface[] $descriptionExtractors
* @param PropertyAccessExtractorInterface[] $accessExtractors
* @paramiterable|PropertyListExtractorInterface[] $listExtractors
Copy link
Contributor

Choose a reason for hiding this comment

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

iterable is not a valid keyword, even according to the (still)draft PSR-5. Seehttps://github.com/phpDocumentor/fig-standards/issues/141

But anyway I think it's redundant to write it like this, it should be simplyiterable<PropertyListExtractorInterface>

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Nor is@final, its support will come when it will be adopted so imo it's not a problem.

About the redundancy I agree but we would lose all completion until editors add generics support, I don't think it's acceptable.

Copy link
Member

@dunglasdunglasFeb 23, 2017
edited
Loading

Choose a reason for hiding this comment

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

Anyway, the RFC for introducing aniterable keyword has been accepted and PHP 7.1 supports this type:https://wiki.php.net/rfc/iterable

GuilhemN reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

@dunglas That's for PHP, not PHPDoc 😄

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

Reviewers

@dunglasdunglasdunglas approved these changes

@stofstofstof left review comments

+2 more reviewers

@teohhanhuiteohhanhuiteohhanhui left review comments

@ogizanagiogizanagiogizanagi left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@GuilhemN@stof@dunglas@nicolas-grekas@teohhanhui@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp