1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the humbug/php-scoper package. |
||
5 | * |
||
6 | * Copyright (c) 2017 Théo FIDRY <[email protected]>, |
||
7 | * Pádraic Brady <[email protected]> |
||
8 | * |
||
9 | * For the full copyright and license information, please view the LICENSE |
||
10 | * file that was distributed with this source code. |
||
11 | */ |
||
12 | |||
13 | declare(strict_types=1); |
||
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 | $config = new FidryConfig( |
||
33 | <<<'EOF' |
||
34 | This file is part of the humbug/php-scoper package. |
||
35 | |||
36 | Copyright (c) 2017 Théo FIDRY <[email protected]>, |
||
37 | Pádraic Brady <[email protected]> |
||
38 | |||
39 | For the full copyright and license information, please view the LICENSE |
||
40 | file that was distributed with this source code. |
||
41 | EOF, |
||
42 | 74000, |
||
43 | ); |
||
44 | |||
45 | return $config->setFinder($finder); |
||
46 |
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