1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/tests/Config/Plugin/Hook/AfterAnalysis.php
orklah f9fccb2b2d
implement DTO for plugins (#4881)
* implement DTO for plugins

* introduce EventHandler + reintroduce legacy API for plugins
2021-01-06 09:05:53 -05:00

23 lines
613 B
PHP

<?php
namespace Psalm\Test\Config\Plugin\Hook;
use Psalm\Internal\Analyzer\IssueData;
use Psalm\Plugin\EventHandler\AfterAnalysisInterface;
use Psalm\Plugin\EventHandler\Event\AfterAnalysisEvent;
class AfterAnalysis implements AfterAnalysisInterface
{
/**
* Called after analysis is complete
*
* @param array<string, list<IssueData>> $issues
*/
public static function afterAnalysis(AfterAnalysisEvent $event): void
{
$source_control_info = $event->getSourceControlInfo();
if ($source_control_info) {
$source_control_info->toArray();
}
}
}