1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/tests/Plugin/Hook/AfterAnalysis.php

34 lines
908 B
PHP
Raw Normal View History

<?php
namespace Psalm\Test\Plugin\Hook;
use Psalm\Codebase;
use Psalm\Plugin\Hook\{
AfterAnalysisInterface
};
use Psalm\SourceControl\SourceControlInfo;
2019-03-23 19:27:54 +01:00
use Psalm\Type;
class AfterAnalysis implements
AfterAnalysisInterface
{
/**
* Called after analysis is complete
2019-03-23 19:27:54 +01:00
*
* @param array<int, array{severity: string, line_from: int, line_to: int, type: string, message: string,
* file_name: string, file_path: string, snippet: string, from: int, to: int,
* snippet_from: int, snippet_to: int, column_from: int, column_to: int, selected_text: string}> $issues
*
* @return void
*/
public static function afterAnalysis(
Codebase $codebase,
array $issues,
array $build_info,
SourceControlInfo $source_control_info = null
) {
if ($source_control_info) {
$source_control_info->toArray();
}
}
}