Page MenuHomePhorge

"Undefined array key 1" exception when @task in PHPDoc is a single string
Closed, ResolvedPublic

Description

  1. PHP 8.3.8, Phorge at 10cb2521630aa333b76ff35634b14a793db85f79
  2. Run ./bin/diviner generate
  3. Go to http://phorge.localhost/book/contrib/article/database/#primary-keys
  4. Click the LiskMigrationIterator link to http://phorge.localhost/diviner/find/?name=LiskMigrationIterator&type=class&jump=1

See the PHPDoc in https://we.phorge.it/source/phorge/browse/master/src/infrastructure/storage/lisk/LiskMigrationIterator.php$14 defining * @task storage.

[2024-06-11 09:20:16] EXCEPTION: (RuntimeException) Undefined array key 1 at [<arcanist>/src/error/PhutilErrorHandler.php:273]
arcanist(head=master, ref.master=6250296648fa), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=divinerUndefArrayKey, ref.master=10cb2521630a, ref.divinerUndefArrayKey=10cb2521630a), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=c81eb9d9e8d9)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/diviner/controller/DivinerAtomController.php:450]
  #1 <#2> DivinerAtomController::composeTasks(DivinerLiveSymbol) called at [<phorge>/src/applications/diviner/controller/DivinerAtomController.php:132]
  #2 <#2> DivinerAtomController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #3 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #4 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:752]
  #5 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]