Page MenuHomePhorge

Fix Diviner creation in PHP 8.1: strlen(): passing null to parameter #1 is deprecated - DivinerGenerateWorkflow.php:197
Closed, DuplicatePublic

Description

Fix Diviner creation in PHP 8.1: strlen(): passing null to parameter #1 is deprecated - DivinerGenerateWorkflow.php:197:

`
[2023-04-02 17:27:25] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=arcpatch-D25105, ref.master=08dfffd5caf7, ref.arcpatch-D25105=08dfffd5caf7), phorge(head=fix-diviner-strlen, ref.master=96ae4ba13acb, ref.fix-diviner-strlen=dfe1d2d8c6c0)
  #0 PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/diviner/workflow/DivinerGenerateWorkflow.php:197]
  #1 DivinerGenerateWorkflow::generateBook(string, PhutilArgumentParser) called at [<phorge>/src/applications/diviner/workflow/DivinerGenerateWorkflow.php:80]
  #2 DivinerGenerateWorkflow::execute(PhutilArgumentParser) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:492]
  #3 PhutilArgumentParser::parseWorkflowsFull(array) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:377]
  #4 PhutilArgumentParser::parseWorkflows(array) called at [<phorge>/scripts/diviner/diviner.php:21]

Related Objects

Event Timeline

valerio.bozzolan created this task.
valerio.bozzolan created this object in space S1 Public.