2016-06-18 20:45:55 +02:00
|
|
|
<?php
|
2016-07-26 00:37:44 +02:00
|
|
|
namespace Psalm;
|
2016-06-18 20:45:55 +02:00
|
|
|
|
|
|
|
use PhpParser;
|
|
|
|
|
|
|
|
abstract class Plugin
|
|
|
|
{
|
|
|
|
/**
|
2016-11-02 07:29:00 +01:00
|
|
|
* Checks an expression
|
|
|
|
*
|
2016-06-18 20:45:55 +02:00
|
|
|
* @param PhpParser\Node\Expr $stmt
|
2016-06-20 07:29:30 +02:00
|
|
|
* @param Context $context
|
2016-06-18 20:45:55 +02:00
|
|
|
* @param string $file_name
|
2016-10-28 22:49:42 +02:00
|
|
|
* @param array $suppressed_issues
|
2016-06-18 20:45:55 +02:00
|
|
|
* @return null|false
|
2016-10-11 20:17:55 +02:00
|
|
|
* @psalm-suppress InvalidReturnType
|
2016-06-18 20:45:55 +02:00
|
|
|
*/
|
2016-10-28 22:49:42 +02:00
|
|
|
public function checkExpression(PhpParser\Node\Expr $stmt, Context $context, $file_name, array $suppressed_issues)
|
2016-06-18 20:45:55 +02:00
|
|
|
{
|
2016-11-02 07:29:00 +01:00
|
|
|
return null;
|
2016-06-18 20:45:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-11-02 07:29:00 +01:00
|
|
|
* Checks a statement
|
|
|
|
*
|
2016-06-18 20:45:55 +02:00
|
|
|
* @param PhpParser\Node $stmt
|
2016-06-20 07:29:30 +02:00
|
|
|
* @param Context $context
|
2016-06-18 20:45:55 +02:00
|
|
|
* @param string $file_name
|
2016-10-28 22:49:42 +02:00
|
|
|
* @param array $suppressed_issues
|
2016-06-18 20:45:55 +02:00
|
|
|
* @return null|false
|
2016-10-11 20:17:55 +02:00
|
|
|
* @psalm-suppress InvalidReturnType
|
2016-06-18 20:45:55 +02:00
|
|
|
*/
|
2016-10-28 22:49:42 +02:00
|
|
|
public function checkStatement(PhpParser\Node $stmt, Context $context, $file_name, array $suppressed_issues)
|
2016-06-18 20:45:55 +02:00
|
|
|
{
|
2016-11-02 07:29:00 +01:00
|
|
|
return null;
|
2016-06-18 20:45:55 +02:00
|
|
|
}
|
|
|
|
}
|