@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
3/**
4 * Never triggers an event.
5 *
6 * This clock can be used for testing, or to cancel events.
7 */
8final class PhabricatorNeverTriggerClock extends PhabricatorTriggerClock {
9
10 public function validateProperties(array $properties) {
11 PhutilTypeSpec::checkMap(
12 $properties,
13 array());
14 }
15
16 public function getNextEventEpoch($last_epoch, $is_reschedule) {
17 return null;
18 }
19
20}