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

Deprecate the \Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker() method #11641

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Oct 9, 2024

We use this method only from within one of our own test cases, and I don't see how it would be useful to anybody else outside – it has to be called on the Parser instance which exists internally in the Query only.

Deprecating and removing it in 4.0 allows for a slight simplification in the Parser there, since we do no longer need the field (it can be a local variable).

…)` method

We use this method only from within one of our own test cases, and I don't see how it would be useful to anybody else outside – it has to be called on the `Parser` instance which exists internally in the `Query` only.

Deprecating and removing it in 3.x allows for a slight simplification in the `Parser` there, since we do no longer need the field (it can be a local variable).
@mpdude mpdude force-pushed the deprecate-set-output-walker branch from fd9aef0 to f3c1d71 Compare October 9, 2024 11:38
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Please add an entry about this in the upgrade fie.

src/Query/Parser.php Outdated Show resolved Hide resolved
@greg0ire greg0ire added this to the 2.20.0 milestone Oct 9, 2024
@greg0ire greg0ire merged commit 896c655 into doctrine:2.20.x Oct 9, 2024
75 checks passed
@greg0ire
Copy link
Member

greg0ire commented Oct 9, 2024

Thanks @mpdude !

derrabus added a commit to derrabus/orm that referenced this pull request Oct 9, 2024
* 2.20.x:
  Remove vendor prefix of PHPDoc referencing class-string (doctrine#11643)
  Deprecate the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method (doctrine#11641)
derrabus added a commit to derrabus/orm that referenced this pull request Oct 9, 2024
* 2.20.x:
  Remove vendor prefix of PHPDoc referencing class-string (doctrine#11643)
  Deprecate the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method (doctrine#11641)
derrabus added a commit to derrabus/orm that referenced this pull request Oct 9, 2024
* 3.3.x:
  Remove vendor prefix of PHPDoc referencing class-string (doctrine#11643)
  Deprecate the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method (doctrine#11641)
@mpdude mpdude deleted the deprecate-set-output-walker branch October 10, 2024 08:01
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.

2 participants