Skip to content

szepeviktor/phpstan-editorlink

Repository files navigation

Editor link error formatter for PHPStan

Installation

Use phpstan/extension-installer or add this manually to your phpstan.neon

includes:
    - vendor/szepeviktor/phpstan-editorlink/extension.neon

Usage

Add this command line option: vendor/bin/phpstan analyze --error-format=editorLink

Example output

 ------ ----------------------------------------------
  Line   authorize.php
 ------ ----------------------------------------------
  20     Function register_activation_hook not found.
         authorize.php:20
  23     Instantiated class App_Auth not found.
         authorize.php:23
 ------ ----------------------------------------------