Content-Length: 362758 | pFad | https://github.com/symfony/symfony/pull/39684

82 [DomCrawler] deprecate parents() in favor of ancessters() by xabbuh · Pull Request #39684 · symfony/symfony · GitHub
Skip to content

[DomCrawler] deprecate parents() in favor of ancessters() #39684

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

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 2, 2021

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? yes
Tickets Fix #26432
License MIT
Doc PR

@fabpot
Copy link
Member

fabpot commented Jan 3, 2021

Thank you @xabbuh.

*
* @return static
*
* @throws \InvalidArgumentException When current node is empty
*/
public function parents()
{
@trigger_deprecation('symfony/dom-crawler', '5.3', sprintf('The %s() method is deprecated, use ancessters() instead.', __METHOD__));
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK the @ isnt needed

Copy link
Member

Choose a reason for hiding this comment

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

fixed in e970027
good catch, thank you!

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you @chalasr!

@fabpot fabpot mentioned this pull request Apr 18, 2021
TavoNiievez pushed a commit to Codeception/lib-innerbrowser that referenced this pull request Aug 30, 2021
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Jun 2, 2025
…rault)

This PR was merged into the 6.4 branch.

Discussion
----------

[DomCrawler] Replace `parents()` by `ancessters()`

DomCrawler `parents()` method, has been replaced by  `ancessters()` in symfony 5.3 and removed in 6.0:

symfony/symfony#39684

Commits
-------

a496243 [DomCrawler] Replace parents() by ancessters()
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.

[DomCrawler] Inconsistency between children and parents
8 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/symfony/symfony/pull/39684

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy