daaarkling/php-add-strict-types-line
Composer 安装命令:
composer create-project daaarkling/php-add-strict-types-line
包简介
Command-line script for adding `declare(strict_types=1);` line to PHP files
README 文档
README
Command-line script for adding declare(strict_types=1); line to PHP files
It uses native PHP tokenizer, so conversion is safe. It adds the line only to files where declare(strict_types=1); was not found.
Usage
To convert all *.php and *.phpt files in whole directory recursively or to convert a single file use:
php add-line.php <directory | file>
统计信息
- 总下载量: 189
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-02-13