From 9abed275c30a5d97f0273389b12ff19c5ff6da59 Mon Sep 17 00:00:00 2001 From: zoranzoki21 Date: Sat, 5 Mar 2022 15:11:43 +0100 Subject: [PATCH] Add phan Change-Id: I7329f96fb36be043979a82b98d3bf2937a6c1f0e --- .phan/config.php | 3 +++ composer.json | 4 +++- src/Editcount.php | 1 + src/EditcountHTML.php | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .phan/config.php diff --git a/.phan/config.php b/.phan/config.php new file mode 100644 index 0000000..76efd06 --- /dev/null +++ b/.phan/config.php @@ -0,0 +1,3 @@ +formatNum( $this->editsInNs( $user, $namespace ) ); } + // @phan-suppress-next-line SecurityCheck-XSS $this->getOutput()->addHTML( $out ); } else { $nscount = $this->editsByNs( $user ); diff --git a/src/EditcountHTML.php b/src/EditcountHTML.php index 44b6139..2967bd9 100644 --- a/src/EditcountHTML.php +++ b/src/EditcountHTML.php @@ -51,6 +51,7 @@ class EditcountHTML extends Editcount { $out .= ' '; + // @phan-suppress-next-line SecurityCheck-XSS $this->getOutput()->addHTML( $out ); }