summaryrefslogtreecommitdiff
path: root/classes/Sanitizer.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-23 17:43:24 +0000
committerwn_ <invalid@email.com>2024-11-23 17:43:24 +0000
commitabcd0e8ba205aac8bd9006e99d783afc999af0af (patch)
tree8635fcd5b239f18db5ff831c7ef21a290a8ac6d8 /classes/Sanitizer.php
parentd4636716fb6e1879098823c2f037db5d8d3f24a0 (diff)
Use native union types in most places.
Diffstat (limited to 'classes/Sanitizer.php')
-rw-r--r--classes/Sanitizer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Sanitizer.php b/classes/Sanitizer.php
index efed9d418..20ca72dc8 100644
--- a/classes/Sanitizer.php
+++ b/classes/Sanitizer.php
@@ -64,7 +64,7 @@ class Sanitizer {
*
* @return false|string The HTML, or false if an error occurred.
*/
- public static function sanitize(string $str, ?bool $force_remove_images = false, ?int $owner = null, ?string $site_url = null, ?array $highlight_words = null, ?int $article_id = null) {
+ public static function sanitize(string $str, ?bool $force_remove_images = false, ?int $owner = null, ?string $site_url = null, ?array $highlight_words = null, ?int $article_id = null): false|string {
if (!$owner && isset($_SESSION["uid"]))
$owner = $_SESSION["uid"];