psalm/attributes
最新稳定版本:0.1.0
Composer 安装命令:
composer require --dev psalm/attributes
包简介
A collection of PHP 8 Attributes that Psalm can understand
README 文档
README
A repository for PHP 8 Attributes that you can use with Psalm.
Installation
The potential for PHP 8's runtime attribute reflection somewhere in your codebase makes this complicated.
If the following code exists your codebase:
function getClassAttributes(string $className) { foreach ((new ReflectionClass($className))->getAttributes() as $attr) { $attr->newInstance(); } }
And there’s a possibility it might load classes with these particular attributes then install with
composer require psalm/attributes:* If you’re not planning to use any runtime attribute reflection (and nobody might use it on your library/package classes) then it should be safe to install with
composer require --dev psalm/attributes 统计信息
- 总下载量: 117.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04