summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ImageMap/tests/phan/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/ImageMap/tests/phan/config.php')
-rw-r--r--www/wiki/extensions/ImageMap/tests/phan/config.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/wiki/extensions/ImageMap/tests/phan/config.php b/www/wiki/extensions/ImageMap/tests/phan/config.php
new file mode 100644
index 00000000..db22766b
--- /dev/null
+++ b/www/wiki/extensions/ImageMap/tests/phan/config.php
@@ -0,0 +1,11 @@
+<?php
+
+$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
+
+// Phan gets confused because DOMNode::setAttribute doesn't
+// exist, it's DOMElement::setAttribute, and some functions
+// are documented to return DOMNode but they actually return
+// DOMElement.
+$cfg['suppress_issue_types'][] = 'PhanUndeclaredMethod';
+
+return $cfg;