Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/src/Formatter/CodeFormatter.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Formatter/CodeFormatter.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/psy/psysh/src/Formatter/CodeFormatter.php Tue Jul 10 15:07:59 2018 +0100 @@ -37,10 +37,6 @@ $colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO; - if ($reflector instanceof \ReflectionGenerator) { - $reflector = $reflector->getFunction(); - } - if ($fileName = $reflector->getFileName()) { if (!is_file($fileName)) { throw new RuntimeException('Source code unavailable'); @@ -70,7 +66,6 @@ private static function isReflectable(\Reflector $reflector) { return $reflector instanceof \ReflectionClass || - $reflector instanceof \ReflectionFunctionAbstract || - $reflector instanceof \ReflectionGenerator; + $reflector instanceof \ReflectionFunctionAbstract; } }