Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid path provided in PHPSTAN_FOR_RECTOR_PATH not reported #7093

Closed
janedbal opened this issue Apr 6, 2022 · 2 comments
Closed

Invalid path provided in PHPSTAN_FOR_RECTOR_PATH not reported #7093

janedbal opened this issue Apr 6, 2022 · 2 comments
Labels

Comments

@janedbal
Copy link

janedbal commented Apr 6, 2022

Bug Report

Missing validation of phpstan for rector path. Tested version: 0.12.19

Minimal PHP Code Causing Issue

<?php declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    $parameters->set(\Rector\Core\Configuration\Option::PHPSTAN_FOR_RECTOR_PATH,  '/not-existing.neon');
};

Expected Behaviour

Error produced.

@janedbal janedbal added the bug label Apr 6, 2022
@TomasVotruba TomasVotruba added feature and removed bug labels Apr 6, 2022
@TomasVotruba
Copy link
Member

Resolved by rectorphp/rector-src#2043

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants