mopsyd/reflection-class-constant-patch
Composer 安装命令:
composer require mopsyd/reflection-class-constant-patch
包简介
This is a backwards compatible patch of the PHP 7.1 ReflectionClassConstant for versions of PHP prior to 7.1
README 文档
README
This is just a simple patch of the PHP 7.1 ReflectionClassConstant, which emulates the high level functionality of it and produces predictably similar results to the native class.
It is not as performant as the native class, and should not be relied upon heavily for production if you are running lower than PHP 7.1, though it is sufficient for command line usage that does not need to resolve quickly.
This patch file will not collide with the native ReflectionClassConstant if it exists, and only declares the class if it does not already exist. It declares modifiers and visibility in conjunction with the default class constant settings that existed prior to their introduction as configurable in PHP 7.1.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-13