mediawiki-extensions-ImageMap/tests/phan/config.php
Kunal Mehta e9208739b6 Add phan configuration
Change-Id: Ie8aee5326c4217e151dee816bc5a3d6b71bf6aa2
2018-02-24 13:33:36 -08:00

13 lines
423 B
PHP

<?php
$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
$cfg['suppress_issue_types'][] = 'PhanDeprecatedFunction';
// 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;