This is the interface custom error formatters implement. Register it in the configuration file like this:
services:
errorFormatter.myFormat:
class: App\PHPStan\AwesomeErrorFormatter
Learn more: https://phpstan.org/developing-extensions/error-formatters
Methods | ||
---|---|---|
public
|
formatErrors(AnalysisResult $analysisResult, Output $output): int
|
# |