drush
drush copied to clipboard
Method ReflectionParameter::getClass() is deprecated in Consolidation\AnnotatedCommand
Describe the bug I am using Drush 8.4.12 with Drupal 7 and PHP 8.0 and getting these deprecation messages:
`Method ReflectionParameter::getClass() is deprecated in Consolidation\AnnotatedCommand\Parser\CommandInfo->determineAgumentClassifications() (line 654 of /vendor/consolidation/annotated-command/src/Parser/CommandInfo.php).
Method ReflectionParameter::getClass() is deprecated in Consolidation\AnnotatedCommand\Parser\CommandInfo->addParameterToResult() (line 674 of /vendor/consolidation/annotated-command/src/Parser/CommandInfo.php).
Method ReflectionParameter::isArray() is deprecated in Consolidation\AnnotatedCommand\Parser\CommandInfo->addParameterToResult() (line 683 of /vendor/consolidation/annotated-command/src/Parser/CommandInfo.php).
Method ReflectionParameter::getClass() is deprecated in Consolidation\AnnotatedCommand\Parser\CommandInfo->addParameterToResult() (line 674 of /vendor/consolidation/annotated-command/src/Parser/CommandInfo.php).`
To Reproduce Run commands like drush updatedb
Expected behavior Do not display error/deprecation messages
Actual behavior Displaying warning messages
Workaround Is there another way to do the desired action?
System Configuration
| Q | A |
|---|---|
| Drush version? | 8.4.12 |
| Drupal version? | 7.x |
| PHP version | 8.0.29 |
| OS? | Linux |
PRs welcome in Consolidation\AnnotatedCommand.
Looks like you are installing Drush 8 as a site-local install in your Drupal site. What version of consolidatin/annotated-command are you using? This looks like something that was fixed a long time ago.