2018-11-12 16:11:08 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Plugin\Hook;
|
|
|
|
|
|
|
|
use PhpParser\Node\Stmt;
|
|
|
|
use Psalm\Codebase;
|
|
|
|
use Psalm\Context;
|
2018-11-12 16:46:55 +01:00
|
|
|
use Psalm\FileManipulation;
|
2018-11-12 16:11:08 +01:00
|
|
|
use Psalm\StatementsSource;
|
|
|
|
|
|
|
|
interface AfterStatementAnalysisInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Called after a statement has been checked
|
|
|
|
*
|
|
|
|
* @param FileManipulation[] $file_replacements
|
|
|
|
*
|
|
|
|
* @return null|false
|
|
|
|
*/
|
|
|
|
public static function afterStatementAnalysis(
|
|
|
|
Stmt $stmt,
|
|
|
|
Context $context,
|
|
|
|
StatementsSource $statements_source,
|
|
|
|
Codebase $codebase,
|
|
|
|
array &$file_replacements = []
|
|
|
|
);
|
|
|
|
}
|