Drush\Drupal\Commands\sql\SanitizeCommands::SANITIZE in ReflectionAttribute->newInstance()

Created on 11 February 2024, about 1 year ago

Problem/Motivation

I get the following error when executing "drush ws":

[error] Error: Undefined constant Drush\Drupal\Commands\sql\SanitizeCommands::SANITIZE in ReflectionAttribute->newInstance() (line 30 of /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Attributes/Hook.php) #0 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Attributes/Hook.php(30): ReflectionAttribute->newInstance()
#1 [internal function]: Consolidation\AnnotatedCommand\Attributes\Hook::handle()
#2 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Parser/Internal/AttributesDocBlockParser.php(33): call_user_func()
#3 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParserFactory.php(14): Consolidation\AnnotatedCommand\Parser\Internal\AttributesDocBlockParser->parse()
#4 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php(879): Consolidation\AnnotatedCommand\Parser\Internal\CommandDocBlockParserFactory::parse()
#5 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php(341): Consolidation\AnnotatedCommand\Parser\CommandInfo->parseDocBlock()
#6 /var/www/html/sunraz-dev/vendor/drush/drush/src/Command/DrushCommandInfoAlterer.php(14): Consolidation\AnnotatedCommand\Parser\CommandInfo->hasAnnotation()
#7 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php(541): Drush\Command\DrushCommandInfoAlterer->alterCommandInfo()
#8 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php(325): Consolidation\AnnotatedCommand\AnnotatedCommandFactory->alterCommandInfo()
#9 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php(209): Consolidation\AnnotatedCommand\AnnotatedCommandFactory->createCommandInfoListFromClass()
#10 /var/www/html/sunraz-dev/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php(201): Consolidation\AnnotatedCommand\AnnotatedCommandFactory->getCommandInfoListFromClass()
#11 /var/www/html/sunraz-dev/vendor/consolidation/robo/src/Runner.php(353): Consolidation\AnnotatedCommand\AnnotatedCommandFactory->createCommandsFromClass()
#12 /var/www/html/sunraz-dev/vendor/drush/drush/src/Boot/DrupalBoot8.php(310): Robo\Runner->registerCommandClass()
#13 /var/www/html/sunraz-dev/vendor/drush/drush/src/Boot/DrupalBoot8.php(253): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#14 /var/www/html/sunraz-dev/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#15 /var/www/html/sunraz-dev/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap()
#16 /var/www/html/sunraz-dev/vendor/drush/drush/src/Application.php(231): Drush\Boot\BootstrapManager->bootstrapMax()
#17 /var/www/html/sunraz-dev/vendor/drush/drush/src/Application.php(197): Drush\Application->bootstrapAndFind()
#18 /var/www/html/sunraz-dev/vendor/symfony/console/Application.php(237): Drush\Application->find()
#19 /var/www/html/sunraz-dev/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#20 /var/www/html/sunraz-dev/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#21 /var/www/html/sunraz-dev/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#22 /var/www/html/sunraz-dev/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
#23 /var/www/html/sunraz-dev/vendor/drush/drush/drush(4): require('...')
#24 /var/www/html/sunraz-dev/vendor/bin/drush(119): include('...')
#25 {main}.

Steps to reproduce

Execute "drush ws" in command terminal.

Proposed resolution

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Closed: won't fix

Version

9.5

Component
BootstrapΒ  β†’

Last updated 26 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States robertmartin1961

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024