Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Finder] BC: Manuelly added files are missing  #40022

Copy link
Copy link
Closed
@shyim

Description

@shyim
Issue body actions

Symfony version(s) affected: 4.4.19

Description
Finder lists only one manuelly added file

How to reproduce

$finder = new Finder();
        $finder
            ->sortByName()
            ->files()
            ->followLinks()
            ->name('*.php');

        $finder->append([__DIR__ . '/Context.php']);
        $finder->append([__DIR__ . '/Logger.phpp']);
        $finder->append([__DIR__ . '/Serializer.php']);

        foreach ($finder as $item) {
            var_dump($item->getPathname());
        }

Output: v4.4.19:
string(59) "/var/www/html/vendor/zircote/swagger-php/src/Serializer.php"

Output: v4.4.18
string(56) "/var/www/html/vendor/zircote/swagger-php/src/Context.php"
string(56) "/var/www/html/vendor/zircote/swagger-php/src/Logger.phpp"
string(59) "/var/www/html/vendor/zircote/swagger-php/src/Serializer.php"

Possible Solution
Revert symfony/finder@94a9b86

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.