2019-03-23 17:47:46 +01:00
|
|
|
<?php
|
2019-05-10 00:58:30 +02:00
|
|
|
namespace Psalm\Test\Config\Plugin\Hook;
|
2019-03-23 17:47:46 +01:00
|
|
|
|
|
|
|
use Psalm\Codebase;
|
2020-02-17 00:24:40 +01:00
|
|
|
use Psalm\Internal\Analyzer\IssueData;
|
2019-03-23 17:47:46 +01:00
|
|
|
use Psalm\Plugin\Hook\{
|
|
|
|
AfterAnalysisInterface
|
|
|
|
};
|
|
|
|
use Psalm\SourceControl\SourceControlInfo;
|
|
|
|
|
|
|
|
class AfterAnalysis implements
|
|
|
|
AfterAnalysisInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Called after analysis is complete
|
2019-03-23 19:27:54 +01:00
|
|
|
*
|
2020-02-17 00:24:40 +01:00
|
|
|
* @param array<string, list<IssueData>> $issues
|
2019-03-23 17:47:46 +01:00
|
|
|
*/
|
|
|
|
public static function afterAnalysis(
|
|
|
|
Codebase $codebase,
|
|
|
|
array $issues,
|
|
|
|
array $build_info,
|
2020-09-07 01:36:47 +02:00
|
|
|
?SourceControlInfo $source_control_info = null
|
2020-10-12 21:02:52 +02:00
|
|
|
): void {
|
2019-03-23 17:47:46 +01:00
|
|
|
if ($source_control_info) {
|
|
|
|
$source_control_info->toArray();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|