{"record":{"id":"7233ab10e6af8077","repo":"phacility/phabricator","slug":"call-includes-lint-parameter-this-parameter-mus","errorCode":null,"errorMessage":"Call includes \"lint\" parameter. This parameter must be omitted when the receiver is not a Build Target.","messagePattern":"Call includes \"lint\" parameter\\. This parameter must be omitted when the receiver is not a Build Target\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php","lineNumber":557,"sourceCode":"        pht(\n          'Unable to load object \"%s\" to receive message.',\n          $receiver_name));\n    }\n\n    $is_target = ($receiver_object instanceof HarbormasterBuildTarget);\n    if ($is_target) {\n      return $this->sendToTarget($request, $message_type, $receiver_object);\n    }\n\n    if ($request->getValue('unit') !== null) {\n      throw new Exception(\n        pht(\n          'Call includes \"unit\" parameter. This parameter must be omitted '.\n          'when the receiver is not a Build Target.'));\n    }\n\n    if ($request->getValue('lint') !== null) {\n      throw new Exception(\n        pht(\n          'Call includes \"lint\" parameter. This parameter must be omitted '.\n          'when the receiver is not a Build Target.'));\n    }\n\n    $is_build = ($receiver_object instanceof HarbormasterBuild);\n    if ($is_build) {\n      return $this->sendToBuild($request, $message_type, $receiver_object);\n    }\n\n    $is_buildable = ($receiver_object instanceof HarbormasterBuildable);\n    if ($is_buildable) {\n      return $this->sendToBuildable($request, $message_type, $receiver_object);\n    }\n\n    throw new Exception(\n      pht(\n        'Receiver object (of class \"%s\") is not a valid receiver.',","sourceCodeStart":539,"sourceCodeEnd":575,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php#L539-L575","documentation":"Error \"Call includes \"lint\" parameter. This parameter must be omitted when the receiver is not a Build Target.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:557 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}