mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 10:38:49 +01:00
35 lines
928 B
PHP
35 lines
928 B
PHP
|
<?php
|
||
|
|
||
|
namespace CodeInspector;
|
||
|
|
||
|
use PhpParser;
|
||
|
|
||
|
abstract class Plugin
|
||
|
{
|
||
|
/**
|
||
|
* checks an expression
|
||
|
* @param PhpParser\Node\Expr $stmt
|
||
|
* @param array<Type\Union> &$vars_in_scope
|
||
|
* @param array &$vars_possibly_in_scope
|
||
|
* @param string $file_name
|
||
|
* @return null|false
|
||
|
*/
|
||
|
public function checkExpression(PhpParser\Node\Expr $stmt, array &$vars_in_scope, array &$vars_possibly_in_scope, $file_name)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* checks a statement
|
||
|
* @param PhpParser\Node $stmt
|
||
|
* @param array<Type\Union> &$vars_in_scope
|
||
|
* @param array &$vars_possibly_in_scope
|
||
|
* @param string $file_name
|
||
|
* @return null|false
|
||
|
*/
|
||
|
public function checkStatement(PhpParser\Node $stmt, array &$vars_in_scope, array &$vars_possibly_in_scope, $file_name)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
}
|