1 | <?php declare(strict_types=1); |
||
2 | |||
3 | /* |
||
4 | * This file is part of Biurad opensource projects. |
||
5 | * |
||
6 | * @copyright 2020 Biurad Group (https://biurad.com/) |
||
7 | * @license https://opensource.org/licenses/BSD-3-Clause License |
||
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 | $header = <<<'EOF' |
||
14 | This file is part of Biurad opensource projects. |
||
15 | |||
16 | @copyright 2020 Biurad Group (https://biurad.com/) |
||
17 | @license https://opensource.org/licenses/BSD-3-Clause License |
||
18 | |||
19 | For the full copyright and license information, please view the LICENSE |
||
20 | file that was distributed with this source code. |
||
21 | EOF; |
||
22 | |||
23 | return (new PhpCsFixer\Config()) |
||
0 ignored issues
–
show
|
|||
24 | ->setRiskyAllowed(true) |
||
25 | ->setFinder( |
||
26 | (new 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 ![]() |
|||
27 | ->in(__DIR__) |
||
28 | ->append([__FILE__]) |
||
29 | ->notPath('#/Fixtures/#') |
||
30 | ->exclude([ |
||
31 | 'vendor/', |
||
32 | 'packages/*/vendor/', |
||
33 | ]) |
||
34 | ) |
||
35 | ->setRules([ |
||
36 | '@Symfony' => true, |
||
37 | '@Symfony:risky' => true, |
||
38 | '@PHP80Migration:risky' => true, |
||
39 | '@PHPUnit84Migration:risky' => true, |
||
40 | 'protected_to_private' => false, |
||
41 | 'single_import_per_statement' => false, |
||
42 | 'blank_line_after_opening_tag' => false, |
||
43 | 'linebreak_after_opening_tag' => false, |
||
44 | 'single_class_element_per_statement' => false, |
||
45 | 'single_trait_insert_per_statement' => false, |
||
46 | //'group_import' => true, |
||
47 | 'native_constant_invocation' => true, |
||
48 | 'comment_to_phpdoc' => true, |
||
49 | 'strict_param' => true, |
||
50 | 'no_unset_on_property' => true, |
||
51 | 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false], |
||
52 | 'ordered_imports' => ['imports_order' => ['class', 'const', 'function'], 'sort_algorithm' => 'alpha'], |
||
53 | 'header_comment' => ['header' => $header], |
||
54 | 'native_function_invocation' => [ |
||
55 | 'include' => ['@compiler_optimized', '@internal'], |
||
56 | 'strict' => true, |
||
57 | ], |
||
58 | 'general_phpdoc_tag_rename' => [ |
||
59 | 'replacements' => [ |
||
60 | 'inheritDocs' => 'inheritdoc', |
||
61 | 'inheritDoc' => 'inheritdoc', |
||
62 | ], |
||
63 | ], |
||
64 | 'blank_line_before_statement' => [ |
||
65 | 'statements' => [], |
||
66 | ], |
||
67 | ]) |
||
68 | ; |
||
69 |
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