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:
parent
144625f625
commit
ad838bf1a4
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user