DiagnoseExtension can output any diagnostic information to stderr after analysis.
PHPStan displays this information when running the "analyse" command with "-vvv" CLI option.
To register it in the configuration file use the phpstan.diagnoseExtension service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.diagnoseExtension
| Methods | ||
|---|---|---|
public
|
print(Output $output): void
|
# |