1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | $finder = PhpCsFixer\Finder::create() |
||
0 ignored issues
–
show
|
|||
6 | ->in(__DIR__) |
||
7 | ; |
||
8 | |||
9 | $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 ![]() |
|||
10 | $config |
||
11 | ->setRiskyAllowed(true) |
||
12 | ->setRules([ |
||
13 | '@PSR12' => true, |
||
14 | '@PHP71Migration' => true, |
||
15 | '@Symfony' => true, |
||
16 | 'phpdoc_summary' => false, |
||
17 | 'phpdoc_align' => false, |
||
18 | ]) |
||
19 | ->setFinder($finder) |
||
20 | ; |
||
21 | |||
22 | return $config; |
||
23 |
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