Page MenuHomePhorge

PHP 8.2 "strlen(): Passing null to parameter #1 ($string) of type string is deprecated" in patch operation
Closed, ResolvedPublic

Description

When you try to execute arcanist's patch command without authentication token (even if nobody would normally do that) you got the exception above :

[2023-08-10 16:14:06] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=master, ref.master=788098096e11), phorge(head=master, ref.master=eb2be08f9f0e)
  #0 PhutilErrorHandler::handleError(integer, string, string, integer) called at [<arcanist>/src/workflow/ArcanistWorkflow.php:483]
  #1 ArcanistWorkflow::authenticateConduit() called at [<arcanist>/src/workflow/ArcanistPatchWorkflow.php:398]
  #2 ArcanistPatchWorkflow::run() called at [<arcanist>/scripts/arcanist.php:427]
<<< [1] (+607) <exec> 607,238 us

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.