Download the PHP package noximo/phpstan-fileoutput without Composer
On this page you can find all versions of the php package noximo/phpstan-fileoutput. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download noximo/phpstan-fileoutput
More information about noximo/phpstan-fileoutput
Files in noximo/phpstan-fileoutput
Package phpstan-fileoutput
Short Description An error formatter for PHPStan that exports analysis result into HTML file
License MIT
Informations about the package phpstan-fileoutput
PHPStan FileOutput
An error formatter for PHPStan that exports analysis result into HTML file
Installation
Usage
Edit or create your phpstan.neon file and register new error formatter. First two parameters are mandatory.
-
First specifies path to file in which data will be outputed.
- Second specifies which other formatter will be used with FileOutput formatter running silently in the background. You can set it to null if you wish to only work with FileOutput-generated files.
You can (and should) specify second parameter to use one of the other formatters as well, so console output will be unaffected:
At the time of writing of this readme these formatters were available by default in PHPStan:
- ,
- ,
- ,
- ,
Check PHPStan repository for possible updates.
Third parameter sets custom output template.
See table.phtml for implementation details and data structure.
Output
FileOutputer will generate HTML file (assuming default template) with hyperlinks directly into PHP files where errors were encountered. If you want to leverage clickable links, set up your enviromenent according to this article: https://tracy.nette.org/en/open-files-in-ide
Note: When you fix an error, file structure and line numbers can no longer correspond to line number at the time of analysis. You'll need to re-run PHPStan to regenerate output file. Errors are outputed in descending order (line-number wise) so there's bigger chance that you won't lines out of their current positions.
All versions of phpstan-fileoutput with dependencies
phpstan/phpstan Version >=0.12.7 <=1.2.0
nette/utils Version ^3.1.0
webmozart/path-util Version ^2.3.0
thecodingmachine/safe Version ^1.0.3
nette/neon Version ^3.1.0