Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Commands / help / ListCommands.php
index f4582c5a4d4c40a74e5201f27341bbf6a237e045..448be4387b4ce5ae3e225851c06334b5f63840d7 100644 (file)
@@ -199,8 +199,7 @@ class ListCommands extends DrushCommands
     public static function categorize($all, $separator = ':')
     {
         foreach ($all as $key => $command) {
-            $hidden = method_exists($command, 'getAnnotationData') && $command->getAnnotationData()->has('hidden');
-            if (!in_array($key, $command->getAliases()) && !$hidden) {
+            if (!in_array($key, $command->getAliases()) && !$command->isHidden()) {
                 $parts = explode($separator, $key);
                 $namespace = count($parts) >= 2 ? array_shift($parts) : '_global';
                 $namespaced[$namespace][$key] = $command;