Page MenuHomePhorge

PHP 8.2 "ltrim(null)" exception while executing ./bin/diviner generate
Closed, ResolvedPublic

Description

When you execute ./bin/diviner generate you get the following output:

FINDING DOCUMENTATION BOOKS
Found 4 books.
Generating book "contributor.book"...
BUILDING ATOM CACHE
Found 11,971 files in project.
Found 11,945 unatomized, uncached files.
Found 0 files to atomize.
Atomizing 0 files.
Atom cache is up to date, no files to atomize.
Writing atom cache.
Done.

BUILDING GRAPH CACHE
Found 0 obsolete atoms in graph.
Found 0 new atoms in graph.
Propagating changes through the graph.
Found 0 affected atoms.
Writing graph cache.
Done.

PUBLISHING DOCUMENTATION
Deleting 0 documents.
Creating 52 documents.
[2023-07-11 05:27:07] EXCEPTION: (RuntimeException) trim(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=master, ref.master=152ba1f02a31), diagram(head=master, ref.master=9031a4f716a0), example(), phorge(head=master, ref.master=7bebfa289aa1, custom=1)
  #0 PhutilErrorHandler::handleError(integer, string, string, integer)
  #1 trim(NULL) called at [<arcanist>/src/parser/PhutilDocblockParser.php:45]
  #2 PhutilDocblockParser::parse(NULL) called at [<phorge>/src/applications/diviner/atom/DivinerAtom.php:85]
  #3 DivinerAtom::setDocblockRaw(NULL) called at [<phorge>/src/applications/diviner/atom/DivinerAtom.php:349]
  #4 DivinerAtom::newFromDictionary(array) called at [<phorge>/src/applications/diviner/publisher/DivinerPublisher.php:61]
  #5 DivinerPublisher::getAtomFromNodeHash(string) called at [<phorge>/src/applications/diviner/publisher/DivinerPublisher.php:54]
  #6 DivinerPublisher::getAtomFromGraphHash(string) called at [<phorge>/src/applications/diviner/publisher/DivinerLivePublisher.php:124]
  #7 DivinerLivePublisher::createDocumentsByHash(array) called at [<phorge>/src/applications/diviner/publisher/DivinerPublisher.php:151]
  #8 DivinerPublisher::publishAtoms(array) called at [<phorge>/src/applications/diviner/workflow/DivinerGenerateWorkflow.php:583]
  #9 DivinerGenerateWorkflow::publishDocumentation(boolean, DivinerLivePublisher) called at [<phorge>/src/applications/diviner/workflow/DivinerGenerateWorkflow.php:213]
  #10 DivinerGenerateWorkflow::generateBook(string, PhutilArgumentParser) called at [<phorge>/src/applications/diviner/workflow/DivinerGenerateWorkflow.php:80]
  #11 DivinerGenerateWorkflow::execute(PhutilArgumentParser) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:492]
  #12 PhutilArgumentParser::parseWorkflowsFull(array) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:377]
  #13 PhutilArgumentParser::parseWorkflows(array) called at [<phorge>/scripts/diviner/diviner.php:21]