spryker-sdk/phpstan-spryker

Spryker PHPStan Extensions

0.3.1 2021-01-25 15:54 UTC

This package is auto-updated.

Last update: 2021-04-13 02:47:48 UTC


README

Build Status Minimum PHP Version License

This extension provides following features:

  • Notifies you when you try to use getConfig(), getClient(), getFacade(), getFactory(), getSharedConfig(), getQueryContainer() methods without specifying theirs types in a class's DocBlock.

Usage

How to use in Spryker projects

To use this extension, require it in Composer. Make sure you include the repo as require-dev dependency:

composer require --dev spryker-sdk/phpstan-spryker

You can use phpstan/extension-installer to automatically load the configuration:

composer require --dev phpstan/extension-installer

Or include the extension.neon manually in your project's PHPStan config:

includes:
    - vendor/spryker-sdk/phpstan-spryker/extension.neon