PHPackages                             friendsoftypo3/phpstan-typo3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. friendsoftypo3/phpstan-typo3

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

friendsoftypo3/phpstan-typo3
============================

TYPO3 rules for PHPStan

0.9.0(4y ago)19628.0k↓16.7%8[1 issues](https://github.com/FriendsOfTYPO3/phpstan-typo3/issues)[1 PRs](https://github.com/FriendsOfTYPO3/phpstan-typo3/pulls)20GPL-2.0-or-laterPHPPHP ^7.2 || ^8.0 || ^8.1CI failing

Since Mar 22Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/FriendsOfTYPO3/phpstan-typo3)[ Packagist](https://packagist.org/packages/friendsoftypo3/phpstan-typo3)[ RSS](/packages/friendsoftypo3-phpstan-typo3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (12)Used By (20)

TYPO3 extension for PHPStan
===========================

[](#typo3-extension-for-phpstan)

Note

`friendsoftypo3/phpstan-typo3` is obsolete and has been retired. The package dependency should be removed from TYPO3 project or extension development: `composer rem --dev friendsoftypo3/phpstan-typo3`. See below for transition options.

Migrating away from friendsoftypo3/phpstan-typo3 since TYPO3 core v12
---------------------------------------------------------------------

[](#migrating-away-from-friendsoftypo3phpstan-typo3-since-typo3-core-v12)

### Remove package and rely on core annotations

[](#remove-package-and-rely-on-core-annotations)

- The list of global TYPO3 specific constants shrunk over time and phpstan finds more of the remaining ones by default. phpstan may mumble about constants `LF` and `CR` not being defined. They can be made known to phpstan like this in a `phpstan.neon` config file: ```
      parameters:
        bootstrapFiles:
        - phpstan.bootstrap.php

    ```

    File `phpstan.bootstrap.php` then contains: ```
