定制 renttek/magento2-psalm 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-29