aboutsummaryrefslogtreecommitdiff
path: root/classes/Sanitizer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-03-26 17:11:56 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-03-26 17:11:56 +0000
commit435c321caaf3ae7aca936f175348d9efb40d6419 (patch)
treed64d45215fa331dca8c489e9b9fbbc9e04cb5eda /classes/Sanitizer.php
parentfea3089bde5b4abfdcc8b5a0314a7f82fcf25bea (diff)
parentde00a095387499cdb5c8eb9c0ab721d67bd0b3fa (diff)
Merge branch 'feature/php84-explicit-nullable-params' into 'master'
Make implicitly nullable parameters explicitly nullable. See merge request tt-rss/tt-rss!26
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 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");