drush icon indicating copy to clipboard operation
drush copied to clipboard

Method ReflectionParameter::getClass() is deprecated in Consolidation\AnnotatedCommand

Open lesleyfernandes opened this issue 2 years ago • 2 comments

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

image

lesleyfernandes avatar Sep 07 '23 17:09 lesleyfernandes

PRs welcome in Consolidation\AnnotatedCommand.

weitzman avatar Sep 21 '23 12:09 weitzman

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.

greg-1-anderson avatar Sep 21 '23 13:09 greg-1-anderson