mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
37 lines
954 B
PHP
37 lines
954 B
PHP
<?php
|
|
|
|
namespace Psalm;
|
|
|
|
use PhpParser;
|
|
|
|
abstract class Plugin
|
|
{
|
|
/**
|
|
* checks an expression
|
|
* @param PhpParser\Node\Expr $stmt
|
|
* @param Context $context
|
|
* @param string $file_name
|
|
* @param array $suppressed_issues
|
|
* @return null|false
|
|
* @psalm-suppress InvalidReturnType
|
|
*/
|
|
public function checkExpression(PhpParser\Node\Expr $stmt, Context $context, $file_name, array $suppressed_issues)
|
|
{
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* checks a statement
|
|
* @param PhpParser\Node $stmt
|
|
* @param Context $context
|
|
* @param string $file_name
|
|
* @param array $suppressed_issues
|
|
* @return null|false
|
|
* @psalm-suppress InvalidReturnType
|
|
*/
|
|
public function checkStatement(PhpParser\Node $stmt, Context $context, $file_name, array $suppressed_issues)
|
|
{
|
|
return;
|
|
}
|
|
}
|