Problem with L10nServerRelease entity

Created on 9 May 2023, about 1 year ago
Updated 10 May 2023, about 1 year ago

Problem/Motivation

While trying to recreate the project from scratch, there was an error with ddev drush l10n_server:parse 'Drupal core' --release='4.2.0' command:

 [error]  TypeError: Drupal\l10n_server\Entity\L10nServerRelease::getProjectId(): Return value must be of type ?int, string returned in Drupal\l10n_server\Entity\L10nServerRelease->getProjectId() (line 279 of /var/www/html/web/modules/contrib/l10n_server/l10n_server/src/Entity/L10nServerRelease.php) #0 /var/www/html/web/modules/contrib/l10n_server/connectors/l10n_drupal_rest/src/ParserService.php(395): Drupal\l10n_server\Entity\L10nServerRelease->getProjectId()
#1 /var/www/html/web/modules/contrib/l10n_server/connectors/l10n_drupal_rest/src/ParserService.php(298): Drupal\l10n_drupal_rest\ParserService->processRelease()
#2 /var/www/html/web/modules/contrib/l10n_server/connectors/l10n_drupal_rest/src/Plugin/l10n_server/Connector/DrupalRest.php(99): Drupal\l10n_drupal_rest\ParserService->parse()
#3 /var/www/html/web/modules/contrib/l10n_server/l10n_server/src/Commands/L10nServerCommands.php(302): Drupal\l10n_drupal_rest\Plugin\l10n_server\Connector\DrupalRest->parseHandler()
#4 [internal function]: Drupal\l10n_server\Commands\L10nServerCommands->parse(Object(Drupal\l10n_server\Entity\L10nServerProject), Array)
#5 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#9 /var/www/html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#16 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#17 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#18 {main}.
๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

l10n_project

Created by

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

Comments & Activities

Production build 0.69.0 2024