Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
63 switch (true) { | 63 switch (true) { |
64 case preg_match(self::SUPERGLOBAL, $valueName, $matches): | 64 case preg_match(self::SUPERGLOBAL, $valueName, $matches): |
65 // @todo maybe do something interesting with these at some point? | 65 // @todo maybe do something interesting with these at some point? |
66 if (array_key_exists($matches[1], $GLOBALS)) { | 66 if (array_key_exists($matches[1], $GLOBALS)) { |
67 throw new RuntimeException('Unable to inspect a non-object'); | 67 throw new RuntimeException('Unable to inspect a non-object'); |
68 } else { | 68 } |
69 throw new RuntimeException('Unknown target: ' . $valueName); | 69 |
70 } | 70 throw new RuntimeException('Unknown target: ' . $valueName); |
71 | |
72 case preg_match(self::CLASS_OR_FUNC, $valueName, $matches): | 71 case preg_match(self::CLASS_OR_FUNC, $valueName, $matches): |
73 return array($this->resolveName($matches[0], true), null, 0); | 72 return array($this->resolveName($matches[0], true), null, 0); |
74 | 73 |
75 case preg_match(self::INSTANCE, $valueName, $matches): | 74 case preg_match(self::INSTANCE, $valueName, $matches): |
76 return array($this->resolveInstance($matches[1]), null, 0); | 75 return array($this->resolveInstance($matches[1]), null, 0); |