* 4.3: (26 commits) [Console] Fix #33915, Detect dimensions using mode CON if vt100 is supported [HttpKernel][DataCollectorInterface] Ease compatibility Add tests to ensure defaultLocale is properly passed to the URL generator [DependencyInjection] Fix broken references in tests [HttpClient] Retry safe requests when then fail before the body arrives Avoid using of kernel after shutdown Simplify PHP CS Fixer configuration [PropertyInfo] Fixed type extraction for nullable collections of non-nullable elements [FrameworkBundle] [HttpKernel] fixed correct EOL and EOM month [Serializer] Fix property name usage for denormalization Name test accordingly to the tested class Fix MockFileSessionStorageTest::sessionDir being used after it's unset bumped Symfony version to 4.3.7 updated VERSION for 4.3.6 updated CHANGELOG for 4.3.6 bumped Symfony version to 3.4.34 updated VERSION for 3.4.33 update CONTRIBUTORS for 3.4.33 updated CHANGELOG for 3.4.33 [HttpClient] Fix perf issue when doing thousands of requests with curl ...
46 lines
1.9 KiB
PHP
46 lines
1.9 KiB
PHP
<?php
|
|
|
|
if (!file_exists(__DIR__.'/src')) {
|
|
exit(0);
|
|
}
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'@PHPUnit75Migration:risky' => true,
|
|
'php_unit_dedicate_assert' => ['target' => '5.6'],
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'fopen_flags' => false,
|
|
'protected_to_private' => false,
|
|
'combine_nested_dirname' => true,
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->append([__FILE__])
|
|
->notPath('#/Fixtures/#')
|
|
->exclude([
|
|
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
|
// fixture templates
|
|
'Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom',
|
|
// resource templates
|
|
'Symfony/Bundle/FrameworkBundle/Resources/views/Form',
|
|
// explicit trigger_error tests
|
|
'Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/',
|
|
])
|
|
// Support for older PHPunit version
|
|
->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php')
|
|
->notPath('#Symfony/Bridge/PhpUnit/.*Mock\.php#')
|
|
->notPath('#Symfony/Bridge/PhpUnit/.*Legacy#')
|
|
// file content autogenerated by `var_export`
|
|
->notPath('Symfony/Component/Translation/Tests/fixtures/resources.php')
|
|
// test template
|
|
->notPath('Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
|
|
// explicit trigger_error tests
|
|
->notPath('Symfony/Component/Debug/Tests/DebugClassLoaderTest.php')
|
|
->notPath('Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php')
|
|
)
|
|
;
|