I ported my drush command set to be drush 9 compatible, my module just only contains a drush command set so it isn't a real module. So every time if somebody wants to use it, he/she needs to run with drush -r {docroot} -i {docroot/module/mymodule}.
My new command file is working with drush 9, but I wanted to test my module with drush 8 as well.
The drush failed with PHP error: PHP Fatal error: Class 'Drush\Commands\DrushCommands' not found
because the annotationcommand_adapter_get_discovery() method finds my commands class but it's using class which isn't available in drush 8.
I tested with drush 8.1.14
I ported my drush command set to be drush 9 compatible, my module just only contains a drush command set so it isn't a real module. So every time if somebody wants to use it, he/she needs to run with drush -r {docroot} -i {docroot/module/mymodule}.
My new command file is working with drush 9, but I wanted to test my module with drush 8 as well.
The drush failed with PHP error: PHP Fatal error: Class 'Drush\Commands\DrushCommands' not found
because the annotationcommand_adapter_get_discovery() method finds my commands class but it's using class which isn't available in drush 8.
I tested with drush 8.1.14