{"record":{"id":"33dd9a78311c1f33","repo":"phacility/phabricator","slug":"search-constraint-mindepth-must-be-no-larger-tha","errorCode":null,"errorMessage":"Search constraint \"minDepth\" must be no larger than search constraint \"maxDepth\".","messagePattern":"Search constraint \"minDepth\" must be no larger than search constraint \"maxDepth\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/project/query/PhabricatorProjectSearchEngine.php","lineNumber":175,"sourceCode":"    if ($map['icons']) {\n      $query->withIcons($map['icons']);\n    }\n\n    if ($map['colors']) {\n      $query->withColors($map['colors']);\n    }\n\n    if ($map['isMilestone'] !== null) {\n      $query->withIsMilestone($map['isMilestone']);\n    }\n\n    $min_depth = $map['minDepth'];\n    $max_depth = $map['maxDepth'];\n\n    if ($min_depth !== null || $max_depth !== null) {\n      if ($min_depth !== null && $max_depth !== null) {\n        if ($min_depth > $max_depth) {\n          throw new Exception(\n            pht(\n              'Search constraint \"minDepth\" must be no larger than '.\n              'search constraint \"maxDepth\".'));\n        }\n      }\n    }\n\n    if ($map['isRoot'] !== null) {\n      if ($map['isRoot']) {\n        if ($max_depth === null) {\n          $max_depth = 0;\n        } else {\n          $max_depth = min(0, $max_depth);\n        }\n\n        $query->withDepthBetween(null, 0);\n      } else {\n        if ($min_depth === null) {","sourceCodeStart":157,"sourceCodeEnd":193,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/project/query/PhabricatorProjectSearchEngine.php#L157-L193","documentation":"Error \"Search constraint \"minDepth\" must be no larger than search constraint \"maxDepth\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/project/query/PhabricatorProjectSearchEngine.php:175 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"}