代码拉取完成,页面将自动刷新
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
// https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.14.3/.php-cs-fixer.dist.php
return (new Config())
->setRules([
'@PHP74Migration' => true,
'@PHP74Migration:risky' => true,
'@PHPUnit100Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead
'heredoc_indentation' => false, // TODO switch on when # of PR's is lower
'modernize_strpos' => true, // needs PHP 8+ or polyfill
'no_useless_concat_operator' => false, // TODO switch back on when the `src/Console/Application.php` no longer needs the concat
'use_arrow_functions' => false, // TODO switch on when # of PR's is lower
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
'strict_comparison' => false,
'strict_param' => false,
'php_unit_internal_class' => false,
])
->setRiskyAllowed(true)
->setFinder(
Finder::create()
->append([__FILE__])
->in(__DIR__.'/app')
->in(__DIR__.'/tests')
->in(__DIR__.'/www')
->in(__DIR__.'/config')
->in(__DIR__.'/database')
)
;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。