|
29 | 29 | '@Symfony' => true,
|
30 | 30 | '@Symfony:risky' => true,
|
31 | 31 | 'protected_to_private' => false,
|
32 |
| - 'native_constant_invocation' => ['strict' => false], |
33 |
| - 'nullable_type_declaration_for_default_null_value' => true, |
34 | 32 | 'header_comment' => ['header' => $fileHeaderComment],
|
| 33 | + // TODO: Remove once the "compiler_optimized" set includes "sprintf" |
| 34 | + 'native_function_invocation' => ['include' => ['@compiler_optimized', 'sprintf'], 'scope' => 'namespaced', 'strict' => true], |
| 35 | + 'nullable_type_declaration' => true, |
| 36 | + 'nullable_type_declaration_for_default_null_value' => true, |
35 | 37 | ])
|
36 | 38 | ->setRiskyAllowed(true)
|
37 | 39 | ->setFinder(
|
|
40 | 42 | ->append([__FILE__])
|
41 | 43 | ->notPath('#/Fixtures/#')
|
42 | 44 | ->exclude([
|
43 |
| - // directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code |
44 |
| - // fixture templates |
45 |
| - 'Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom', |
46 |
| - // resource templates |
47 |
| - 'Symfony/Bundle/FrameworkBundle/Resources/views/Form', |
48 | 45 | // explicit trigger_error tests
|
49 | 46 | 'Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/',
|
50 | 47 | 'Symfony/Component/Intl/Resources/data/',
|
51 | 48 | ])
|
| 49 | + // explicit tests for ommited @param type, against `no_superfluous_phpdoc_tags` |
| 50 | + ->notPath('Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php') |
| 51 | + ->notPath('Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php') |
52 | 52 | // Support for older PHPunit version
|
53 | 53 | ->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php')
|
54 | 54 | ->notPath('#Symfony/Bridge/PhpUnit/.*Mock\.php#')
|
55 | 55 | ->notPath('#Symfony/Bridge/PhpUnit/.*Legacy#')
|
56 | 56 | // file content autogenerated by `var_export`
|
57 | 57 | ->notPath('Symfony/Component/Translation/Tests/fixtures/resources.php')
|
58 |
| - // file content autogenerated by `VarExporter::export` |
59 |
| - ->notPath('Symfony/Component/Serializer/Tests/Fixtures/serializer.class.metadata.php') |
60 |
| - // test template |
61 |
| - ->notPath('Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php') |
62 | 58 | // explicit trigger_error tests
|
63 | 59 | ->notPath('Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php')
|
64 | 60 | // stop removing spaces on the end of the line in strings
|
65 | 61 | ->notPath('Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php')
|
| 62 | + // svg |
| 63 | + ->notPath('Symfony/Component/ErrorHandler/Resources/assets/images/symfony-ghost.svg.php') |
| 64 | + // HTML templates |
| 65 | + ->notPath('#Symfony/.*\.html\.php#') |
66 | 66 | )
|
67 | 67 | ->setCacheFile('.php-cs-fixer.cache')
|
68 | 68 | ;
|
0 commit comments