1
0
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:
Matthew Brown 2016-08-09 12:07:26 -04:00
parent 0d35f1c14b
commit 054032354d

View File

@ -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) {