1 | <?php |
||
2 | |||
3 | |||
4 | declare(strict_types=1); |
||
5 | |||
6 | /* |
||
7 | * This file is part of the humbug/php-scoper package. |
||
8 | * |
||
9 | * Copyright (c) 2017 Théo FIDRY <[email protected]>, |
||
10 | * Pádraic Brady <[email protected]> |
||
11 | * |
||
12 | * For the full copyright and license information, please view the LICENSE |
||
13 | * file that was distributed with this source code. |
||
14 | */ |
||
15 | |||
16 | use Fidry\PhpCsFixerConfig\FidryConfig; |
||
0 ignored issues
–
show
|
|||
17 | 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 ![]() |
|||
18 | |||
19 | $finder = Finder::create() |
||
20 | ->in([ |
||
21 | 'src', |
||
22 | 'tests', |
||
23 | ]) |
||
24 | ->append([ |
||
25 | 'bin/check-composer-root-version.php', |
||
26 | 'bin/dump-composer-root-version.php', |
||
27 | 'bin/php-scoper', |
||
28 | 'bin/root-version.php', |
||
29 | '.php-cs-fixer.dist.php', |
||
30 | 'scoper.inc.php', |
||
31 | ]); |
||
32 | |||
33 | $config = new FidryConfig( |
||
34 | <<<'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 | 74000, |
||
44 | ); |
||
45 | $config->setRules( |
||
46 | array_merge( |
||
47 | $config->getRules(), |
||
48 | [ |
||
49 | 'header_comment' => [ |
||
50 | 'header' => $config->getRules()['header_comment']['header'], |
||
51 | 'location' => 'after_declare_strict', |
||
52 | ], |
||
53 | 'mb_str_functions' => false, |
||
54 | 'native_constant_invocation' => false, |
||
55 | 'native_function_invocation' => false, |
||
56 | 'no_unneeded_control_parentheses' => false, |
||
57 | 'ordered_class_elements' => false, |
||
58 | 'phpdoc_annotation_without_dot' => false, |
||
59 | 'yoda_style' => false, |
||
60 | ], |
||
61 | ), |
||
62 | ); |
||
63 | |||
64 | return $config->setFinder($finder); |
||
65 |
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