oneup / phpstan-contao
This package is abandoned and no longer maintained.
The author suggests using the contao/phpstan package instead.
Contao Framework extensions and rules for PHPStan
0.2.2
2018-08-21 18:44 UTC
Requires
- php: ^7.1
- phpstan/phpstan: ^0.10.2
- phpstan/phpstan-symfony: ^0.10
- symfony/debug: ^4.1
- symfony/monolog-bridge: ^3.0 || ^4.0
- symfony/monolog-bundle: ^3.3
- symfony/templating: ^3.1 || ^4.0
Requires (Dev)
- contao/core-bundle: ^4.5.999
- contao/test-case: ^1.1
- friendsofphp/php-cs-fixer: ^2.12
- lexik/maintenance-bundle: ^2.1.3
- php-coveralls/php-coveralls: ^2.1
- php-http/guzzle6-adapter: ^1.1
- phpunit/phpunit: ^7.2
- symfony/var-dumper: ^4.1
This package is not auto-updated.
Last update: 2022-02-01 13:14:11 UTC
README
This extension provides following features:
- Provides correct return types for Contao services.
Usage
To use this extension, require it in Composer:
composer require --dev oneup/phpstan-contao
And include extension.neon in your project's PHPStan config:
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.