2017 © Pedro Peláez
 

library phpstan-contao

Contao Framework extensions and rules for PHPStan

image

oneup/phpstan-contao

Contao Framework extensions and rules for PHPStan

  • Friday, July 27, 2018
  • by bytehead
  • Repository
  • 2 Watchers
  • 0 Stars
  • 208 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

PHPStan Contao Framework extensions and rules

This extension provides following features:, (*1)

  • Provides correct return types for Contao services.

Author Software License Travis CI Coverage Status Total Downloads, (*2)

Usage

To use this extension, require it in Composer:, (*3)

composer require --dev oneup/phpstan-contao

And include extension.neon in your project's PHPStan config:, (*4)

includes:
    - vendor/oneup/phpstan-contao/extension.neon
    - vendor/phpstan/phpstan-symfony/extension.neon

parameters:
    contao:
        services_yml_path: %currentWorkingDirectory%/src/Resources/config/services.yml

    symfony:
        container_xml_path: %currentWorkingDirectory%/vendor/oneup/phpstan-contao/var/cache/dev/appDevPHPStanProjectContainer.xml

Limitations

You have to provide a path to services.yml or similar yml file describing your services., (*5)

The Versions