|
@@ -291,7 +291,7 @@ discard block |
|
|
block discarded – undo |
|
291
|
291
|
return $this->alterDate; |
|
292
|
292
|
} |
|
293
|
293
|
|
|
294
|
|
- public function getAnnounce(bool $decode = false): string|array |
|
|
294
|
+ public function getAnnounce(bool $decode = false): string | array |
|
295
|
295
|
{ |
|
296
|
296
|
// Ensure we're decoding a string, even if it was temporarily an array internally |
|
297
|
297
|
$announceString = is_array($this->announce) ? json_encode($this->announce) : $this->announce; |
|
@@ -308,7 +308,7 @@ discard block |
|
|
block discarded – undo |
|
308
|
308
|
return $this->setAnnounce($announce); |
|
309
|
309
|
} |
|
310
|
310
|
|
|
311
|
|
- public function setAnnounce(string|array|object $announce): self |
|
|
311
|
+ public function setAnnounce(string | array | object $announce): self |
|
312
|
312
|
{ |
|
313
|
313
|
if (is_string($announce)) |
|
314
|
314
|
$announce = json_decode($announce, true); |
Please login to merge, or discard this patch.