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

add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support#19036

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

Conversation

@Haehnchen
Copy link
Contributor

QA
Branch2.7
Bug fixno
New featureno
BC breaksno
Deprecationsno
Tests passyes
LicenseMIT

In additional to#16965 PhpStorm supportsIteratorAggregate::getIterator now. seehttps://blog.jetbrains.com/phpstorm/2016/06/phpstorm-2016-2-eap-162-844/

example

$collection  = new \Symfony\Component\Routing\RouteCollection();foreach ($collection as $route) {    $route->getHost();}

*{@inheritdoc}
*@return ChoiceGroupView[]|ChoiceView[]
*/
publicfunctiongetIterator()
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps the inheritdoc can stay. If I understand correctly how it is supposed to work,{@inheritdoc} only imports the (long) description.

Copy link
Member

Choose a reason for hiding this comment

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

indeed 👍

@fabpot
Copy link
Member

@Haehnchen Can you finish this PR?

@HaehnchenHaehnchenforce-pushed thepatch/phpstorm-iterator branch 3 times, most recently frombcf33f1 to21e584fCompareJune 17, 2016 12:39
@HaehnchenHaehnchenforce-pushed thepatch/phpstorm-iterator branch from21e584f toede3556CompareJune 17, 2016 12:42
@Haehnchen
Copy link
ContributorAuthor

@fabpot done

@nicolas-grekas
Copy link
Member

Thank you@Haehnchen.

@nicolas-grekasnicolas-grekas merged commitede3556 intosymfony:2.7Jun 17, 2016
nicolas-grekas added a commit that referenced this pull requestJun 17, 2016
…orAggregate::getIterator PhpStorm support (Haehnchen)This PR was merged into the 2.7 branch.Discussion----------add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support| Q             | A| ------------- | ---| Branch       | 2.7| Bug fix      | no| New feature  | no| BC breaks    | no| Deprecations | no| Tests pass   | yes| License       | MITIn additional to#16965 PhpStorm supports `IteratorAggregate::getIterator` now. seehttps://blog.jetbrains.com/phpstorm/2016/06/phpstorm-2016-2-eap-162-844/example```$collection  = new \Symfony\Component\Routing\RouteCollection();foreach ($collection as $route) {    $route->getHost();}```Commits-------ede3556 add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support
Haehnchen added a commit to Haehnchen/shopware-platform that referenced this pull requestFeb 22, 2019
I was just "playing" with the cart. stacking class together as i noticed collections do not provide ide support. This is just a example for one collection to support autocompletion.So also how this was implemented in Symfony:symfony/symfony#19036```        $cart = new \Shopware\Core\Checkout\Cart\Cart();        $cart->getLineItems()[0]->getDescription();        foreach ($cart->getLineItems() as $item) {            $item->getDescription();        }```
shopwareBot pushed a commit to shopware/shopware that referenced this pull requestFeb 25, 2019
I was just "playing" with the cart. stacking class together as i noticed collections do not provide ide support. This is just a example for one collection to support autocompletion.So also how this was implemented in Symfony:symfony/symfony#19036```        $cart = new \Shopware\Core\Checkout\Cart\Cart();        $cart->getLineItems()[0]->getDescription();        foreach ($cart->getLineItems() as $item) {            $item->getDescription();        }```fixes#18
shopwareBot pushed a commit to shopware/core that referenced this pull requestFeb 25, 2019
I was just "playing" with the cart. stacking class together as i noticed collections do not provide ide support. This is just a example for one collection to support autocompletion.So also how this was implemented in Symfony:symfony/symfony#19036```        $cart = new \Shopware\Core\Checkout\Cart\Cart();        $cart->getLineItems()[0]->getDescription();        foreach ($cart->getLineItems() as $item) {            $item->getDescription();        }```fixes#18
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Haehnchen@fabpot@nicolas-grekas@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp