Aeliot-Tm / php-cs-fixer-baseline

Simple baseline for PHP CS Fixer
MIT License
1 stars 2 forks source link

Missing Path for autoloader throws RuntimeException #4

Closed sfaujour closed 1 month ago

sfaujour commented 3 months ago

When installing the composer package, the autoloader can not be found, as the path you are trying to resolve for the autoload, has a additional depth of 2.

Adding another line within the $paths array, within vendor/aeliot/php-cs-fixer-baseline/bin/pcsf-baseline in my case, helped me out:

$paths = [
        __DIR__ . '/vendor/autoload.php',
        __DIR__ . '/../vendor/autoload.php',
        __DIR__ . '/../../vendor/autoload.php',
        __DIR__ . '/../../../../vendor/autoload.php',
    ];
Aeliot-Tm commented 1 month ago

Hi @sfaujour,

Version with fix of this issue released: v1.0.1 Could you try it?

Aeliot-Tm commented 1 month ago

Sorry for late answer

sfaujour commented 1 month ago

@Aeliot-Tm Hi and sorry, was on holidays :) I'll try it this week 🙂