wujunze/declare-strict-easy
Composer 安装命令:
composer require wujunze/declare-strict-easy
包简介
PHP7 tool for easy add/remove "declare(strict_types=1)"
README 文档
README
Enable strict typing in your project with one command. Based on PCRE and supports PSR-2.
WARNING: before run command ensure that you have backup of your files!!!
Base on declare-strict-types
Thanks to declare-strict-types
Usage
Install via composer
composer require --dev wujunze/declare-strict-easy
Run command to add "declare(strict_types=1)" in all files in specified folders
bin/declare_strict_types add --exclude=bar/baz/bah foo/directory bar/baz
Also supports remove mode
bin/declare_strict_types remove foo/directory
PS
You may prefer PHP-CS-Fixer with "declare_strict_types" rule!
统计信息
- 总下载量: 2.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-13