]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - phpstan.neon
Enable PHPStan
[github/wallabag/wallabag.git] / phpstan.neon
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644 (file)
index 0000000..dfbc97a
--- /dev/null
@@ -0,0 +1,13 @@
+includes:
+    - vendor/phpstan/phpstan-phpunit/extension.neon
+    - vendor/phpstan/phpstan-symfony/extension.neon
+    - vendor/phpstan/phpstan-doctrine/extension.neon
+    - vendor/phpstan/phpstan-phpunit/rules.neon
+
+parameters:
+    symfony:
+        container_xml_path: %rootDir%/../../../var/cache/test/appTestDebugProjectContainer.xml
+
+    # https://github.com/phpstan/phpstan/issues/694#issuecomment-350724288
+    autoload_files:
+        - vendor/bin/.phpunit/phpunit-6.5/vendor/autoload.php