saschaegerer / phpstan-typo3
TYPO3 CMS class reflection extension for PHPStan
Installs: 137 459
Dependents: 37
Suggesters: 0
Security: 0
Stars: 20
Watchers: 5
Forks: 10
Open Issues: 3
Type:phpstan-extension
Requires
- php: ~7.1
- phpstan/phpstan: ^0.12
- typo3/cms-core: ^8.7 || ^9.5 || ^10.2
- typo3/cms-extbase: ^8.7 || ^9.5 || ^10.2
Requires (Dev)
- consistence/coding-standard: ^3.8
- dealerdirect/phpcodesniffer-composer-installer: ^0.4.4
- jakub-onderka/php-parallel-lint: ^1.0
- phing/phing: ^2.16.0
- phpstan/phpstan-strict-rules: ^0.12
Suggests
- typo3/testing-framework: Testing framework is used in the bootstrap (src/PhpStanTypo3Bootstrap.php). In most cases you need this package but you may also use your custom bootstrap (e.g. if you use nimut/testing-framework)
This package is auto-updated.
Last update: 2021-03-19 10:32:48 UTC
README
TYPO3 CMS class reflection extension for PHPStan & framework-specific rules
Configuration
To use this extension, require it in Composer:
composer require --dev saschaegerer/phpstan-typo3
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, put this into your phpstan.neon config:
includes:
- vendor/saschaegerer/phpstan-typo3/extension.neon
Additional Configuration
If you do use constants of TYPO3 core you may have to bootstrap TYPO3 first. This can be done by using the unit testing bootstrap of the testing-framework
parameters:
autoload_files:
- %rootDir%/../../typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php