Passed
Pull Request — master (#514)
by Fabien
10:39
created

.php-cs-fixer.dist.php (2 issues)

Labels
Severity
1
<?php
2
3
$finder = PhpCsFixer\Finder::create()
0 ignored issues
show
The type PhpCsFixer\Finder 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
    ->in(__DIR__.'/src')
5
    ->in(__DIR__.'/tests')
6
    ->name('*.php')
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
return $config
12
    ->setRiskyAllowed(true)
13
    ->setRules([
14
        '@Symfony' => true,
15
        'single_line_throw' => false,
16
    ])
17
    ->setFinder($finder)
18
;
19