1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 9f7b61aa41b3a7686f924a0e1c2286a26f369124 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 9 Apr 2021 12:18:16 +0200
Subject: [PATCH] fix implode calls
---
src/When.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/When.php b/src/When.php
index 47279eb..9b1ddeb 100644
--- a/src/When.php
+++ b/src/When.php
@@ -62,7 +62,7 @@ public function freq($frequency)
return $this;
}
- throw new InvalidArgumentException("freq: Accepts " . rtrim(implode(Valid::$frequencies, ", "), ","));
+ throw new InvalidArgumentException("freq: Accepts " . rtrim(implode(", ", Valid::$frequencies), ","));
}
public function until($endDate)
@@ -244,7 +244,7 @@ public function wkst($weekDay)
return $this;
}
- throw new InvalidArgumentException("wkst: Accepts " . rtrim(implode(Valid::$weekDays, ", "), ","));
+ throw new InvalidArgumentException("wkst: Accepts " . rtrim(implode(", ", Valid::$weekDays), ","));
}
public function rrule($rrule)
|