Skip to content

Rector initialization ignores alternative config file path #7601

@rolf-kraemer-camao-one

Description

@rolf-kraemer-camao-one

Bug Report

Subject Details
Rector version v0.14.7

Initializing Rector config with a given config file path doesn't seem to work.

In my case, running
vendor/bin/rector init --config=config/packages/dev/rector.php
gives me an error when the file doesn't exist. If I create an empty file in the desired location and run the init command again, the given file path gets ignored and rector.php is being created in the default location (project root)

Minimal PHP Code Causing Issue

vendor/bin/rector init --config=config/packages/dev/rector.php

Expected Behaviour

According to vendor/bin/rector init --help I should be able to provide an alternative config file location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions