PHP CS Fixer: use PHPUnit Migration ruleset

This commit is contained in:
Dariusz Ruminski 2017-12-19 22:44:19 +01:00 committed by Nicolas Grekas
parent f6fc785262
commit a5bc7d649b
1 changed files with 2 additions and 1 deletions

View File

@ -8,9 +8,10 @@ return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit48Migration:risky' => true,
'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
'array_syntax' => array('syntax' => 'long'),
'protected_to_private' => false,
'php_unit_dedicate_assert' => array('target' => '3.5'),
))
->setRiskyAllowed(true)
->setFinder(