2019-03-23 17:47:46 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2019-05-10 00:58:30 +02:00
|
|
|
namespace Psalm\Test\Config\Plugin\Hook;
|
2019-03-23 17:47:46 +01:00
|
|
|
|
2021-01-06 15:05:53 +01:00
|
|
|
use Psalm\Plugin\EventHandler\AfterAnalysisInterface;
|
|
|
|
use Psalm\Plugin\EventHandler\Event\AfterAnalysisEvent;
|
2019-03-23 17:47:46 +01:00
|
|
|
|
2021-01-06 15:05:53 +01:00
|
|
|
class AfterAnalysis implements AfterAnalysisInterface
|
2019-03-23 17:47:46 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Called after analysis is complete
|
|
|
|
*/
|
2021-01-06 15:05:53 +01:00
|
|
|
public static function afterAnalysis(AfterAnalysisEvent $event): void
|
|
|
|
{
|
|
|
|
$source_control_info = $event->getSourceControlInfo();
|
2019-03-23 17:47:46 +01:00
|
|
|
if ($source_control_info) {
|
|
|
|
$source_control_info->toArray();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|