Security update for Core, with self-updated composer
[yaffs-website] / vendor / psy / psysh / src / Psy / Command / DocCommand.php
index 6b3f2fd62ff1ca323daf37199f33326255b28ade..9f5fb5b9ab4d78141367b35e060549b5af03d04e 100644 (file)
@@ -74,7 +74,7 @@ HELP
             if (empty($doc) && !$db) {
                 $output->writeln('<warning>PHP manual not found</warning>');
                 $output->writeln('    To document core PHP functionality, download the PHP reference manual:');
-                $output->writeln('    https://github.com/bobthecow/dotfiles/wiki/PHP-manual');
+                $output->writeln('    https://github.com/bobthecow/psysh/wiki/PHP-manual');
             } else {
                 $output->writeln($doc);
             }
@@ -87,6 +87,8 @@ HELP
     private function getManualDoc($reflector)
     {
         switch (get_class($reflector)) {
+            case 'ReflectionClass':
+            case 'ReflectionObject':
             case 'ReflectionFunction':
                 $id = $reflector->name;
                 break;
@@ -95,6 +97,10 @@ HELP
                 $id = $reflector->class . '::' . $reflector->name;
                 break;
 
+            case 'ReflectionProperty':
+                $id = $reflector->class . '::$' . $reflector->name;
+                break;
+
             default:
                 return false;
         }