X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FTabCompletion%2FMatcher%2FMongoClientMatcher.php;h=d08442e70f610b257c16a49a5fef5289b20599a4;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=35733426043ce3004822546ed1b55765e97d8d6c;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php b/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php index 357334260..d08442e70 100644 --- a/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php +++ b/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php @@ -33,8 +33,8 @@ class MongoClientMatcher extends AbstractContextAwareMatcher array_pop($tokens); } $objectToken = array_pop($tokens); - $objectName = str_replace('$', '', $objectToken[1]); - $object = $this->getVariable($objectName); + $objectName = str_replace('$', '', $objectToken[1]); + $object = $this->getVariable($objectName); if (!$object instanceof \MongoClient) { return array(); @@ -57,7 +57,7 @@ class MongoClientMatcher extends AbstractContextAwareMatcher */ public function hasMatched(array $tokens) { - $token = array_pop($tokens); + $token = array_pop($tokens); $prevToken = array_pop($tokens); switch (true) {