X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FTabCompletion%2FMatcher%2FClassAttributesMatcher.php;h=b26df77811cc8924e867a147e5d4d1a65e4ed5db;hb=419f97be044f1aebd0713921ee604841127e9e84;hp=13a1746f6f6701e181851a272bc8913402890682;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/psy/psysh/src/TabCompletion/Matcher/ClassAttributesMatcher.php b/vendor/psy/psysh/src/TabCompletion/Matcher/ClassAttributesMatcher.php index 13a1746f6..b26df7781 100644 --- a/vendor/psy/psysh/src/TabCompletion/Matcher/ClassAttributesMatcher.php +++ b/vendor/psy/psysh/src/TabCompletion/Matcher/ClassAttributesMatcher.php @@ -54,7 +54,10 @@ class ClassAttributesMatcher extends AbstractMatcher return array_map( function ($name) use ($class) { - return $class . '::' . $name; + $chunks = explode('\\', $class); + $className = array_pop($chunks); + + return $className . '::' . $name; }, array_filter( $vars,