From ca65006a0cbf8a4e6ce5a37b07c013948b0f0c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9lian=20Bousquet?= <26789950+kells64000@users.noreply.github.com> Date: Sat, 18 May 2024 17:35:20 +0200 Subject: [PATCH] Update scheduler.rst The while was missing a parenthesis and the negation of the condition needs to be removed for it to work as expected. --- scheduler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler.rst b/scheduler.rst index d23df3b3044..b1ef369b677 100644 --- a/scheduler.rst +++ b/scheduler.rst @@ -320,7 +320,7 @@ For example, if you want to send customer reports daily except for holiday perio } // loop until you get the next run date that is not a holiday - while (!$this->isHoliday($nextRun) { + while ($this->isHoliday($nextRun)) { $nextRun = $this->inner->getNextRunDate($nextRun); }