wiz-develop / php-cs-fixer-config
🛠 wiz-develop 的 php-cs-fixer 配置。
v8.3.2
2024-05-24 08:02 UTC
Requires
- php: ^8.3
- friendsofphp/php-cs-fixer: ^3.54
This package is not auto-updated.
Last update: 2024-09-27 09:29:33 UTC
README
wiz-develop 使用 php-cs-fixer 配置
✨ 特点
- 严格:严格保护代码库。
- 现代:针对最新PHP版本进行优化。
📦 安装
composer require --dev wiz-develop/php-cs-fixer-config
要启用设置,请将 .php-cs-fixer.php
文件添加到项目中。
<?php declare(strict_types=1); use PhpCsFixer\Finder; use WizDevelop\PhpCsFixerConfig\Config; return (new Config()) ->setFinder( (new Finder()) ->in(__DIR__), );
如果您想允许高风险规则,请将构造函数中的 $allowRisky
设置为 true。
new Config(allowRisky: true)
✅ 版本控制
此包的版本 x.y.z 在 PHP x.y 上运行(例如:8.3.x 在 PHP 8.3 上运行)。当规则集更改时,z 的值会增加。