diff --git a/.gitignore b/.gitignore
index db8a779..ac85a9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /node_modules
 /vendor
 /composer.lock
+tests/phan/issues
diff --git a/composer.json b/composer.json
index fb052c7..0363d52 100644
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,8 @@
 		"jakub-onderka/php-parallel-lint": "1.0.0",
 		"mediawiki/mediawiki-codesniffer": "18.0.0",
 		"jakub-onderka/php-console-highlighter": "0.3.2",
-		"mediawiki/minus-x": "0.3.1"
+		"mediawiki/minus-x": "0.3.1",
+		"mediawiki/mediawiki-phan-config": "0.2.0"
 	},
 	"scripts": {
 		"fix": [
diff --git a/tests/phan/config.php b/tests/phan/config.php
new file mode 100644
index 0000000..f2660b8
--- /dev/null
+++ b/tests/phan/config.php
@@ -0,0 +1,3 @@
+<?php
+
+return require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';