renttek/magento2-psalm
最新稳定版本:1.1.2
Composer 安装命令:
composer require renttek/magento2-psalm
包简介
Magenot 2 psalm plugin
README 文档
README
This module is based on vismadc/magento2-psalm and tdgroot/magento2-psalm but rewritten from scratch.
Installation
composer require --dev renttek/magento2-psalm
vendor/bin/psalm-plugin enable renttek/magento2-psalm
Features
- Mocking of Extension Attribute classes
- Mocking of Factory classes
- Mocking of Proxy classes
- Stubs for badly annotated classes
Configuration
If you don't want to enable one of the mock categories or the loading of the stubs, you can disable them in your psalm.xml by setting these flags:
<?xml version="1.0"?> <psalm> <!-- ... --> <plugins> <pluginClass class="Renttek\Magento2Psalm\Plugin"> <enableExtensionAttributeMocker>false</enableExtensionAttributeMocker> <!-- disables mocking of extension attribute classes --> <enableFactoryMocker>false</enableFactoryMocker> <!-- disables mocking of factory classes --> <enableProxyMocker>false</enableProxyMocker> <!-- disables mocking of proxy classes --> <loadStubs>false</loadStubs> <!-- disables loading of static stub files --> </pluginClass> </plugins> <!-- ... --> </psalm>
统计信息
- 总下载量: 6.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-29