mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Exit early if ReflectionError
This commit is contained in:
parent
0d35f1c14b
commit
054032354d
@ -596,7 +596,9 @@ class ClassChecker implements StatementsSource
|
||||
public static function getStaticPropertiesForClass($class_name, $visibility)
|
||||
{
|
||||
if (!isset(self::$_public_static_class_properties[$class_name])) {
|
||||
self::_registerClassProperties($class_name);
|
||||
if (self::_registerClassProperties($class_name) === false) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
if ($visibility === ReflectionProperty::IS_PUBLIC) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user