From abcd0e8ba205aac8bd9006e99d783afc999af0af Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 23 Nov 2024 17:43:24 +0000 Subject: Use native union types in most places. --- classes/Sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Sanitizer.php') 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"]; -- cgit v1.2.3-54-g00ecf