mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix Psalm errors in Psalm
This commit is contained in:
parent
7ade8a8667
commit
1c09ea7380
@ -31,6 +31,9 @@ class ClassChecker extends ClassLikeChecker
|
||||
*/
|
||||
protected static $class_extends = [];
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
protected static $anonymous_class_count = 0;
|
||||
|
||||
/**
|
||||
|
@ -22,6 +22,9 @@ use ReflectionProperty;
|
||||
|
||||
abstract class ClassLikeChecker implements StatementsSource
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected static $SPECIAL_TYPES = ['int', 'string', 'float', 'bool', 'false', 'object', 'empty', 'callable', 'array'];
|
||||
|
||||
/**
|
||||
@ -992,7 +995,7 @@ abstract class ClassLikeChecker implements StatementsSource
|
||||
/**
|
||||
* @param string $class_name
|
||||
* @param mixed $visibility
|
||||
* @return array<string,Type\Union>
|
||||
* @return array<string,Type\Union|false>
|
||||
*/
|
||||
public static function getStaticPropertiesForClass($class_name, $visibility)
|
||||
{
|
||||
|
@ -27,26 +27,25 @@ class FileChecker implements StatementsSource
|
||||
*/
|
||||
protected $include_file_name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $namespace;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $aliased_classes = [];
|
||||
|
||||
protected $class_name;
|
||||
|
||||
/**
|
||||
* @var array<string, array<int, string>>
|
||||
*/
|
||||
protected $namespace_aliased_classes = [];
|
||||
|
||||
/**
|
||||
* @var array<int, \PhpParser\Node>
|
||||
*/
|
||||
protected $preloaded_statements = [];
|
||||
|
||||
protected $declared_classes = [];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $suppressed_issues = [];
|
||||
|
||||
@ -423,7 +422,7 @@ class FileChecker implements StatementsSource
|
||||
|
||||
public function getClassName()
|
||||
{
|
||||
return $this->class_name;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user