syntro-opensource / silverstripe-phpstan

Extend PHPStan (PHP Static Analysis) to support SilverStripe projects
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

PHPStan for Silverstripe

A module allowing PHPStan to work with Silverstripe.

🎭 Tests codecov Dependabot phpstan composer Packagist Version

Features:

This PHPStan module is able to reason about extensions installed specific to your project as it bootstraps the SilverStripe config system. So if you've added an extension to your Page object that adds an additional db field, PHPStan will be able to reason about it.

Composer Install

SilverStripe 5.X

composer require --dev syntro/silverstripe-phpstan ^5

For Silverstripe 4, see the corresponding branch.

Requirements

Documentation

Known Limitations / Gotchas

Credits

This is a fork of the original symbiote/silverstripe-phpstan maintained by Symbiote & Contributors. We have created this, as the original repository seems to be no longer actively maintained.