Skip to content

Crawler::closest method changed return type to static #685

@eerison

Description

@eerison

Hello

on version 8, the return type changed from self to static
https://github.com/symfony/dom-crawler/blob/8.0/Crawler.php#L396

Fatal error: Declaration of Symfony\Component\Panther\DomCrawler\Crawler::closest(string $selector): ?Symfony\Component\Panther\DomCrawler\Crawler must be compatible with Symfony\Component\DomCrawler\Crawler::closest(string $selector): ?static in /home/runner/work/SonataPageBundle/SonataPageBundle/vendor/symfony/panther/src/DomCrawler/Crawler.php on line 145

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions