1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /** |
||
6 | * Execute the command like this: |
||
7 | * php-cs-fixer --config=.php-cs-fixer.dist.php fix src tests |
||
8 | */ |
||
9 | require_once __DIR__.'/vendor/autoload.php'; |
||
10 | |||
11 | $finder = PhpCsFixer\Finder::create(); |
||
0 ignored issues
–
show
|
|||
12 | |||
13 | $config = new PhpCsFixer\Config(); |
||
0 ignored issues
–
show
The type
PhpCsFixer\Config was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
14 | $config->setFinder($finder); |
||
15 | |||
16 | return $config; |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths