1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 18:17:55 +01:00
psalm/src/Psalm/Plugin.php

35 lines
780 B
PHP
Raw Normal View History

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
{
/**
* checks an expression
* @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
* @return null|false
2016-08-11 01:21:03 +02:00
* @suppress InvalidReturnType
2016-06-18 20:45:55 +02:00
*/
public function checkExpression(PhpParser\Node\Expr $stmt, Context $context, $file_name)
2016-06-18 20:45:55 +02:00
{
return;
}
/**
* checks a statement
* @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
* @return null|false
2016-08-11 01:21:03 +02:00
* @suppress InvalidReturnType
2016-06-18 20:45:55 +02:00
*/
public function checkStatement(PhpParser\Node $stmt, Context $context, $file_name)
2016-06-18 20:45:55 +02:00
{
return;
}
}