Issues (38)

.php-cs-fixer.php (2 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
$finder = (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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
    ->in(__DIR__.'/src')
7
    ->in(__DIR__.'/tests')
8
    ->append([__FILE__])
9
;
10
11
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
    ->setRiskyAllowed(true)
13
    ->setRules([
14
        '@PhpCsFixer' => true,
15
        '@PhpCsFixer:risky' => true,
16
        '@DoctrineAnnotation' => true,
17
        '@PHPUnit84Migration:risky' => true,
18
        'date_time_immutable' => true,
19
        'final_public_method_for_abstract_class' => false,
20
        'general_phpdoc_annotation_remove' => [
21
            'annotations' => [
22
                'expectedException',
23
                'expectedExceptionMessage',
24
                'expectedExceptionMessageRegExp',
25
            ],
26
        ],
27
        'global_namespace_import' => true,
28
        'linebreak_after_opening_tag' => true,
29
        'list_syntax' => ['syntax' => 'short'],
30
        'mb_str_functions' => true,
31
        'method_chaining_indentation' => true,
32
        'nullable_type_declaration_for_default_null_value' => true,
33
        'ordered_interfaces' => true,
34
        'ordered_traits' => true,
35
        'php_unit_test_class_requires_covers' => false,
36
        'phpdoc_types' => true,
37
        'phpdoc_to_param_type' => true,
38
        'phpdoc_to_property_type' => true,
39
        'phpdoc_to_return_type' => true,
40
        'regular_callable_call' => true,
41
        'self_static_accessor' => true,
42
        'simplified_if_return' => true,
43
        'simplified_null_return' => true,
44
        'static_lambda' => true,
45
        'get_class_to_class_keyword' => true,
46
    ])
47
    ->setFinder($finder)
48
;
49