1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /* |
||
6 | * This file is part of the humbug/php-scoper package. |
||
7 | * |
||
8 | * Copyright (c) 2017 Théo FIDRY <[email protected]>, |
||
9 | * Pádraic Brady <[email protected]> |
||
10 | * |
||
11 | * For the full copyright and license information, please view the LICENSE |
||
12 | * file that was distributed with this source code. |
||
13 | */ |
||
14 | |||
15 | use Fidry\PhpCsFixerConfig\FidryConfig; |
||
0 ignored issues
–
show
|
|||
16 | use PhpCsFixer\Finder; |
||
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
17 | |||
18 | $finder = Finder::create() |
||
19 | ->in([ |
||
20 | 'src', |
||
21 | 'tests', |
||
22 | ]) |
||
23 | ->append([ |
||
24 | 'bin/check-composer-root-version.php', |
||
25 | 'bin/dump-composer-root-version.php', |
||
26 | 'bin/php-scoper', |
||
27 | 'bin/root-version.php', |
||
28 | '.php-cs-fixer.dist.php', |
||
29 | 'scoper.inc.php', |
||
30 | ]); |
||
31 | |||
32 | $overriddenRules = [ |
||
33 | 'header_comment' => [ |
||
34 | 'header' => <<<'EOF' |
||
35 | This file is part of the humbug/php-scoper package. |
||
36 | |||
37 | Copyright (c) 2017 Théo FIDRY <[email protected]>, |
||
38 | Pádraic Brady <[email protected]> |
||
39 | |||
40 | For the full copyright and license information, please view the LICENSE |
||
41 | file that was distributed with this source code. |
||
42 | EOF, |
||
43 | 'location' => 'after_declare_strict', |
||
44 | ], |
||
45 | 'mb_str_functions' => false, |
||
46 | 'no_unneeded_control_parentheses' => false, |
||
47 | 'yoda_style' => false, |
||
48 | ]; |
||
49 | |||
50 | $config = new FidryConfig('', 74000); |
||
51 | $config->addRules($overriddenRules); |
||
52 | |||
53 | return $config->setFinder($finder); |
||
54 |
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