Skip to content

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.

*/
public function parents()
{
@trigger_deprecation('symfony/dom-crawler', '5.3', sprintf('The %s() method is deprecated, use ancestors() 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 `ancestors()`

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

symfony/symfony#39684

Commits
-------

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