Skip to content
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

Replace TreeWalkerChainIterator with a generator #9511

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

derrabus
Copy link
Member

While investigating the type errors on the tree walker classes, I stumbled on TreeWalkerChainIterator. This class seems unnecessarily complex and can easily replaced with a three-line generator function. So I did just that.

@derrabus derrabus force-pushed the deprecate/tree-walker-iterator branch from 09688ee to 34ba81a Compare February 15, 2022 10:11
@derrabus derrabus changed the title Replace TreeWalkerChainIterator with a generator Replace TreeWalkerChainIterator with a generator Feb 15, 2022
<code>walkUpdateItem</code>
<code>walkUpdateStatement</code>
<code>walkWhereClause</code>
</PossiblyNullReference>
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@derrabus derrabus merged commit d78fa52 into doctrine:2.12.x Feb 15, 2022
@derrabus derrabus deleted the deprecate/tree-walker-iterator branch February 15, 2022 12:00
n-e-m-a-nj-a pushed a commit to n-e-m-a-nj-a/orm that referenced this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants