Skip to content

version 1.8.4 cause Found 1 unknown class error on single class definition and use #247

@samsonasik

Description

@samsonasik

when defined:

// use the defined class::constant just defined in the file.
return DowngradeRectorConfig::DEPENDENCY_EXCLUDE_PATHS;

/** the DowngradeRectorConfig is clearly defined in the target file here */
final class DowngradeRectorConfig
{
    public const DEPENDENCY_EXCLUDE_PATHS = [
          // definition here ...
    ];
}

in single definition and run, it cause the error:

Found 1 unknown class!
(unable to autoload those, so we cannot check them)

  • DowngradeRectorConfig
    in build/config/config-downgrade.php:10

seems DowngradeRectorConfig not detected while it actually defined.

see https://github.com/rectorphp/rector-src/actions/runs/19675350225/job/56354827988?pr=7667#step:5:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions