Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Oct 18, 2025

@staabm staabm marked this pull request as ready for review October 18, 2025 19:11
);

$parameterTypes = [];
foreach ($extendedParametersAcceptor->getParameters() as $parameterReflection) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unrelated fix to get a green build. no functional changes

@TomasVotruba
Copy link
Member

Neat work 👏 Thank you

Could you add this role to the code quality set here? It's great fit

$statement = $statement->expr;
}

if ($statement instanceof Return_ || $statement instanceof YieldFrom) {
Copy link
Member

Choose a reason for hiding this comment

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

Nice 👏

@TomasVotruba
Copy link
Member

TomasVotruba commented Oct 18, 2025

I see. The rule is already in the set.

Good to go then 👍

@TomasVotruba TomasVotruba merged commit 3ea365a into rectorphp:main Oct 18, 2025
6 checks passed
@TomasVotruba
Copy link
Member

I've triggered the build of rector/rector dev. Should be ready to test in your real project in ~5 mins
Give it a go and let me know, if it needs any improvements

@staabm staabm deleted the trans branch October 19, 2025 05:46
@staabm
Copy link
Contributor Author

staabm commented Oct 19, 2025

thanks!

found a interessting case which doesn't work atm
#555

@samsonasik
Copy link
Member

yield from can be multiple, so placing mix between return and yield from directly is invalid, as need to be collected first, see

https://3v4l.org/seVoc

@samsonasik
Copy link
Member

I created PR

to skip mix yield and yield from.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn yield from into multiple yield in PHPUnit Dataprovider

3 participants