saschaegerer/phpstan-typo3

TYPO3 CMS class reflection extension for PHPStan

Installs: 77 829

Dependents: 14

Suggesters: 0

Security: 0

Stars: 18

Watchers: 4

Forks: 10

Open Issues: 1

Type:phpstan-extension

0.13.1 2020-02-11 21:05 UTC

This package is auto-updated.

Last update: 2020-10-27 10:15:14 UTC


README

TYPO3 CMS class reflection extension for PHPStan & framework-specific rules

Build Status

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