Doing a git pull from origin https://my.phorge.site/source/myrepo.git fails when the Phorge website is running PHP 8.1.
Errorlog:
AH01071: Got error 'PHP message: [2023-07-04 09:16:40] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]PHP message: arcanist(head=master, ref.master=8130241a11ac, custom=4), phorge(head=master, ref.master=7c1487e4dcfa)PHP message: #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/diffusion/controller/DiffusionServeController.php:186]PHP message: #1 <#2> DiffusionServeController::serveRequest(AphrontRequest) called at [<phorge>/src/applications/diffusion/controller/DiffusionServeController.php:99]PHP message: #2 <#2> DiffusionServeController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]PHP message: #3 <#2> AphrontController::delegateToController(DiffusionServeController) called at [<phorge>/src/applications/diffusion/controller/DiffusionController.php:27]PHP message: #4 <#2> DiffusionController::willBeginExecution() called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:271]PHP message: #5 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]PHP message: #6 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]PHP message: #7 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]PHP message: #8 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]PHP message: #9 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]PHP message: [2023-07-04 09:16:40] EXCEPTION: (PhutilAggregateException) Encountered a processing exception, then another exception when trying to build a response for the first exception.\n - PhabricatorDataNotAttachedException: Attempting to access attached data on PhabricatorUser (via getAlternateCSRFString()), but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.\n \n Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly.\n - RuntimeException: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:316]PHP message: arcanist(head=master, ref.master=8130241a11ac, custom=4), phorge(head=master, ref.master=7c1487e4dcfa)PHP message: #0 <#4> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/diffusion/controller/DiffusionServeController.php:186]PHP message: #1 <#4> DiffusionServeController::serveRequest(AphrontRequest) called at [<phorge>/src/applications/diffusion/controller/DiffusionServeController.php:99]PHP message: #2 <#4> DiffusionServeController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]PHP message: #3 <#4> AphrontController::delegateToController(DiffusionServeController) called at [<phorge>/src/applications/diffusion/controller/DiffusionController.php:27]PHP message: #4 <#4> DiffusionController::willBeginExecution() called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:271]PHP message: #5 <#3> PhabricatorLiskDAO::assertAttached(string) called at [<phorge>/src/applications/people/storage/PhabricatorUser.php:989]PHP message: #6 <#3> PhabricatorUser::getAlternateCSRFString() called at [<phorge>/src/applications/people/storage/PhabricatorUser.php:1001]PHP message: #7 <#3> PhabricatorUser::newCSRFEngine() called at [<phorge>/src/applications/people/storage/PhabricatorUser.php:979]PHP message: #8 <#3> PhabricatorUser::getCSRFToken() called at [<phorge>/src/infrastructure/javelin/markup.php:129]PHP message: #9 <#3> phabricator_form(PhabricatorUser, array, array) called at [<phorge>/src/view/AphrontDialogView.php:478]PHP message: #10 <#3> AphrontDialogView::render() called at [<phorge>/src/aphront/response/AphrontDialogResponse.php:17]PHP message: #11 <#3> AphrontDialogResponse::buildResponseString() called at [<phorge>/src/applications/base/controller/PhabricatorController.php:275]PHP message: #12 <#3> PhabricatorController::willSendResponse(AphrontDialogResponse) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:300]PHP message: #13 <#2> AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]PHP message: #14 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]PHP message: #15 phlog(PhutilAggregateException) called at [<phorge>/src/aphront/response/AphrontUnhandledExceptionResponse.php:32]PHP message: #16 AphrontUnhandledExceptionResponse::setException(PhutilAggregateException) called at [<phorge>/webroot/index.php:46]'