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

[Messenger] fix wrong use of generator returns#31389

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
fabpot merged 1 commit intosymfony:masterfromTobion:messenger-generator
May 6, 2019

Conversation

@Tobion
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRsymfony/symfony-docs#...

I've seen this problem many times: Mixingyield withreturn [].
Unfortunately it cannot be forbidden at the compiler level because it's actually a feature:https://www.php.net/manual/de/generator.getreturn.php
But usually not intended that way.
Also added some other minor cleanups I've found.

}

privatefunctiongetReceiver()
privatefunctiongetReceiver():AmqpReceiver
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Added typehints to make it consistent with DoctrineTransport.

@chalasr
Copy link
Member

fabbot patch looks good

@TobionTobionforce-pushed themessenger-generator branch frome931367 to50c9c8aCompareMay 6, 2019 09:28
Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

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

test failures look legit

chalasr reacted with thumbs up emoji
@xabbuhxabbuh added this to the4.3 milestoneMay 6, 2019
@TobionTobionforce-pushed themessenger-generator branch from50c9c8a toc9e5853CompareMay 6, 2019 09:54
@Tobion
Copy link
ContributorAuthor

Fixed tests

@fabpot
Copy link
Member

@Tobion Can you apply fabbot's patch?

@TobionTobionforce-pushed themessenger-generator branch fromc9e5853 toe8a09e9CompareMay 6, 2019 10:23
@Tobion
Copy link
ContributorAuthor

Done

@fabpot
Copy link
Member

Thank you@Tobion.

@fabpotfabpot merged commite8a09e9 intosymfony:masterMay 6, 2019
fabpot added a commit that referenced this pull requestMay 6, 2019
This PR was merged into the 4.3-dev branch.Discussion----------[Messenger] fix wrong use of generator returns| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets || License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->I've seen this problem many times: Mixing `yield` with `return []`.Unfortunately it cannot be forbidden at the compiler level because it's actually a feature:https://www.php.net/manual/de/generator.getreturn.phpBut usually not intended that way.Also added some other minor cleanups I've found.Commits-------e8a09e9 [Messenger] fix wrong use of generator returns
@TobionTobion deleted the messenger-generator branchMay 6, 2019 13:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@srozesrozesroze approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

6 participants

@Tobion@chalasr@fabpot@sroze@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp