1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix error checking private access from subclass

This commit is contained in:
Matthew Brown 2016-12-11 22:17:00 -05:00
parent 144625f625
commit ad838bf1a4

View File

@ -587,7 +587,7 @@ class MethodChecker extends FunctionLikeChecker
$declared_method_id = self::getDeclaringMethodId($method_id);
$method_class = explode('::', $method_id)[0];
$method_class = explode('::', (string)$declared_method_id)[0];
$method_name = explode('::', $method_id)[1];
if (!isset(self::$method_visibility[$declared_method_id])) {