dchesterton/phpdoc-to-return 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dchesterton/phpdoc-to-return

最新稳定版本:v0.1.1

Composer 安装命令:

composer require dchesterton/phpdoc-to-return

包简介

Convert PHPDoc @return hints to PHP7/Hack native return type syntax

README 文档

README

Command line tool to convert PHPDoc @return hints to new PHP 7 return type syntax. (Requires PHP 5.4+)

Installation

Install the package globally using Composer: composer global require dchesterton/phpdoc-to-return

Usage

Navigate to the directory you wish to convert, then simply call phpdoc-to-return.

By default, the tool will overwrite the code but you can optionally specify the source and destination folders using the --src and --dest options.

phpdoc-to-return --src=lib --dest=converted

Hack

The tool has basic support for converting to Hack Return Types

phpdoc-to-return --src=lib --hack

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-20