X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FTabCompletion%2FMatcher%2FMongoDatabaseMatcher.php;h=8494067bf9a7d625f71fbd70e4c1bc97961b2f74;hp=31aef898d1b2432cd0904adfbf156d53ac82cf58;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php b/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php index 31aef898d..8494067bf 100644 --- a/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php +++ b/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php @@ -33,8 +33,8 @@ class MongoDatabaseMatcher 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 \MongoDB) { return array(); @@ -53,7 +53,7 @@ class MongoDatabaseMatcher extends AbstractContextAwareMatcher */ public function hasMatched(array $tokens) { - $token = array_pop($tokens); + $token = array_pop($tokens); $prevToken = array_pop($tokens); switch (true) {