mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix possible reference error if interface name is bad
This commit is contained in:
parent
6027687ad9
commit
55fc146c57
@ -261,7 +261,9 @@ abstract class ClassLikeChecker implements StatementsSource
|
||||
}
|
||||
|
||||
foreach (ClassChecker::getInterfacesForClass($this->absolute_class) as $interface_id => $interface_name) {
|
||||
self::$public_class_constants[$this->absolute_class] += self::$public_class_constants[$interface_name];
|
||||
if (isset(self::$public_class_constants[$interface_name])) {
|
||||
self::$public_class_constants[$this->absolute_class] += self::$public_class_constants[$interface_name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user