php-stubs/genesis-stubs
最新稳定版本:v3.5.0
Composer 安装命令:
composer require --dev php-stubs/genesis-stubs
包简介
Genesis functions stubs for static analysis.
README 文档
README
This package provides stub declarations for Genesis framework functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan, which is not able to parse genesis as it is not clean OOP code.
Stubs are generated directly from the latest Genesis version that is required to be downloaded manually as it is blocked by a form. using giacocorsiglia/stubs-generator.
Requirements
- PHP >=7.1
Installation
Require this package as a development dependency with Composer.
composer require --dev php-stubs/genesis-stubs
Alternatively you may download genesis-stubs.php directly.
Usage in PHPStan
Include all stubs in PHPStan configuration file.
parameters: bootstrapFiles: - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php - %rootDir%/../../php-stubs/genesis-stubs/genesis-stubs.php
统计信息
- 总下载量: 14.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-14