contao/rector
最新稳定版本:1.3.1
Composer 安装命令:
composer require contao/rector
包简介
Rector configurations for Contao
README 文档
README
This package includes the Rector configuration for Contao.
Installation
Add the package to your Contao installation via Composer:
composer require contao/rector --dev
Usage
Create a file named rector.php in the root directory of your project.
<?php declare(strict_types=1); use Contao\Rector\Set\SetList; use Rector\Config\RectorConfig; return RectorConfig::configure() ->withSets([SetList::CONTAO]) // Adjust the configuration according to your needs. ;
Then run the script like this:
vendor/bin/rector
What's inside?
The package contains the following custom rectors:
| Class | Description |
|---|---|
SimplifyObjectOrNullCheckRector |
Replaces null comparisons that check for object|null with boolean comparisons. |
License
Contao is licensed under the terms of the LGPLv3.
Getting support
Visit the support page to learn about the available support options.
统计信息
- 总下载量: 13.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 54
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2023-09-27