X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FReflectingCommand.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FReflectingCommand.php;h=ad142d0719dd5fa2ec51ed54241a09357d5d4935;hp=55c7005aeee61000d8705b823fdb2cdf402b0aa1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php b/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php index 55c7005ae..ad142d071 100644 --- a/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php +++ b/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php @@ -65,10 +65,9 @@ abstract class ReflectingCommand extends Command implements ContextAware // @todo maybe do something interesting with these at some point? if (array_key_exists($matches[1], $GLOBALS)) { throw new RuntimeException('Unable to inspect a non-object'); - } else { - throw new RuntimeException('Unknown target: ' . $valueName); } + throw new RuntimeException('Unknown target: ' . $valueName); case preg_match(self::CLASS_OR_FUNC, $valueName, $matches): return array($this->resolveName($matches[0], true), null, 0);