X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FTabCompletion%2FMatcher%2FClassAttributesMatcher.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FTabCompletion%2FMatcher%2FClassAttributesMatcher.php;h=b26df77811cc8924e867a147e5d4d1a65e4ed5db;hp=13a1746f6f6701e181851a272bc8913402890682;hb=419f97be044f1aebd0713921ee604841127e9e84;hpb=052617e40b525f8b817d84c29b1c04951f427069 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,