@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorEdgeCycleException extends Exception {
4
5 private $cycleEdgeType;
6 private $cycle;
7
8 public function __construct($cycle_edge_type, array $cycle) {
9 $this->cycleEdgeType = $cycle_edge_type;
10 $this->cycle = $cycle;
11
12 $cycle_list = implode(', ', $cycle);
13
14 parent::__construct(
15 pht(
16 'Graph cycle detected (type=%s, cycle=%s).',
17 $cycle_edge_type,
18 $cycle_list));
19 }
20
21 public function getCycle() {
22 return $this->cycle;
23 }
24
25 public function getCycleEdgeType() {
26 return $this->cycleEdgeType;
27 }
28
29}