This PHPStan error formatter will add annotations in Bitbucket, for example in pull requests, similar to the built-in GitHub formatting.
Via Composer
composer require --dev swisnl/phpstan-bitbucket
If you also have phpstan/extension-installer installed, then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, include extension.neon in your project's PHPStan config:
includes:
- vendor/swisnl/phpstan-bitbucket/extension.neon
To use this custom error formatter you need to run PHPStan with --error-format=bitbucket
option. For example:
vendor/bin/phpstan analyse src -l8 --error-format=bitbucket
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
This package is a fork of alxt/phpstan-bitbucket with some updates.
The MIT License (MIT). Please see License File for more information.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.