PhpStan extension to support Magento 2's use of magic methods

Installs: 47 210

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 3

Forks: 4

Open Issues: 0


v0.7.4 2022-01-12 22:19 UTC

This package is auto-updated.

Last update: 2022-05-12 23:09:28 UTC


The extension bootstraps the same autoloader that is run when using Magento 2's unit tests. By default it will place the generated class under var/. Change the environment variable TESTS_TEMP_DIR to change the folder.

Installation Instructions via Composer

composer require --dev fooman/phpstan-magento2-magic-methods:^0.7

Note on required use of phpstan/extension-installer

Manual installation

If the use of phpstan/extension-installer is not working for you undo the installation by adding

    "replace": {
        "phpstan/extension-installer": "*"

to your project's composer.json file. Then manually include extension.neon in your project's PHPStan config:

    - vendor/fooman/phpstan-magento2-magic-methods/extension.neon

Or as an alternative approach you can check out