Skip to content

Cannot load bleedingEdge from phpstan #2431

@snapshotpl

Description

@snapshotpl
Subject Details
Rector version v0.6.1
PHP version PHP 7.3.12
phpstan version v0.12.2

Current Behaviour

After run process:

rector process module/ --dry-run

Fatal error: Uncaught _HumbugBox22f0dbe102af\Nette\FileNotFoundException: File 'phar://phpstan.phar/conf/bleedingEdge.neon' is missing or is not readable. in phar:///var/www/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Config/Loader.php on line 29

_HumbugBox22f0dbe102af\Nette\FileNotFoundException: File 'phar://phpstan.phar/conf/bleedingEdge.neon' is missing or is not readable. in phar:///var/www/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Config/Loader.php on line 29

Call Stack:
    0.0558     458192   1. {main}() /var/www/vendor/rector/rector/bin/rector:0
    1.4034   23744432   2. ContainerKpKdxQ6\HttpKernelRector_HttpKernel_RectorKernelProd5699145Container->get() /var/www/vendor/rector/rector/bin/rector:47
    1.4034   23744432   3. ContainerKpKdxQ6\HttpKernelRector_HttpKernel_RectorKernelProd5699145Container->make() /var/www/vendor/symfony/dependency-injection/Container.php:225

Minimal PHP Code Causing Issue

My phpstan config includes bleedingEdge.neon, which is fine, even in phar.

includes:
    - vendor/phpstan/phpstan/conf/bleedingEdge.neon

Expected Behaviour

No fatal, bleedingEdge included.

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