1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | $finder = (new PhpCsFixer\Finder()) |
||
0 ignored issues
–
show
|
|||
6 | ->in(__DIR__.'/src') |
||
7 | ->notPath('DependencyInjection/Configuration.php') |
||
8 | ->in(__DIR__.'/tests') |
||
9 | ->exclude('App/var') |
||
10 | ->append([__FILE__]) |
||
11 | ; |
||
12 | |||
13 | return (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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths
Loading history...
|
|||
14 | ->setRiskyAllowed(true) |
||
15 | ->setRules([ |
||
16 | '@PhpCsFixer' => true, |
||
17 | '@PhpCsFixer:risky' => true, |
||
18 | '@DoctrineAnnotation' => true, |
||
19 | '@PHPUnit84Migration:risky' => true, |
||
20 | 'date_time_immutable' => true, |
||
21 | 'final_public_method_for_abstract_class' => false, |
||
22 | 'general_phpdoc_annotation_remove' => [ |
||
23 | 'annotations' => [ |
||
24 | 'expectedException', |
||
25 | 'expectedExceptionMessage', |
||
26 | 'expectedExceptionMessageRegExp', |
||
27 | ], |
||
28 | ], |
||
29 | 'global_namespace_import' => true, |
||
30 | 'linebreak_after_opening_tag' => true, |
||
31 | 'list_syntax' => ['syntax' => 'short'], |
||
32 | 'mb_str_functions' => true, |
||
33 | 'method_chaining_indentation' => true, |
||
34 | 'nullable_type_declaration_for_default_null_value' => true, |
||
35 | 'ordered_interfaces' => true, |
||
36 | 'ordered_traits' => true, |
||
37 | 'php_unit_size_class' => true, |
||
38 | 'php_unit_test_class_requires_covers' => false, |
||
39 | 'phpdoc_types' => true, |
||
40 | 'phpdoc_to_param_type' => true, |
||
41 | 'phpdoc_to_property_type' => true, |
||
42 | 'phpdoc_to_return_type' => true, |
||
43 | 'regular_callable_call' => true, |
||
44 | 'self_static_accessor' => true, |
||
45 | 'simplified_if_return' => true, |
||
46 | 'simplified_null_return' => true, |
||
47 | 'static_lambda' => true, |
||
48 | 'get_class_to_class_keyword' => true, |
||
49 | ]) |
||
50 | ->setFinder($finder) |
||
51 | ; |
||
52 |
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