From de00a095387499cdb5c8eb9c0ab721d67bd0b3fa Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 26 Mar 2024 16:38:05 +0000 Subject: Make implicit nullable parameters explicitly nullable. This is to address a deprecation planned for PHP 8.4. https://wiki.php.net/rfc/deprecate-implicitly-nullable-types --- 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 a7bea9e5f..2a5b031df 100644 --- a/classes/Sanitizer.php +++ b/classes/Sanitizer.php @@ -62,7 +62,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) { $span = OpenTelemetry\API\Trace\Span::getCurrent(); $span->addEvent("Sanitizer::sanitize"); -- cgit v1.2.3-54-g00ecf