Add phpstan/phpstan to check PHP fatal/warning errors

pull/3016/head
Julio Montoya 6 years ago
parent cabb8c29ce
commit 9e84514577
  1. 1
      .gitattributes
  2. 3
      composer.json
  3. 11
      phpstan.neon

1
.gitattributes vendored

@ -11,6 +11,7 @@
.php_cs export-ignore .php_cs export-ignore
codesize.xml export-ignore codesize.xml export-ignore
phpcs.xml export-ignore phpcs.xml export-ignore
phpstan.neon export-ignore
/tests export-ignore /tests export-ignore
.editorconfig export-ignore .editorconfig export-ignore

@ -184,7 +184,8 @@
"behat/mink-extension": "@stable", "behat/mink-extension": "@stable",
"behat/mink-goutte-driver": "@stable", "behat/mink-goutte-driver": "@stable",
"behat/mink-selenium2-driver": "@stable", "behat/mink-selenium2-driver": "@stable",
"phpstan/phpstan": "^0.11.19" "phpstan/phpstan": "^0.11.19",
"phpstan/phpstan-symfony": "^0.11.6"
}, },
"scripts": { "scripts": {
"auto-scripts": { "auto-scripts": {

@ -0,0 +1,11 @@
parameters:
autoload_files:
- %rootDir%/../../../main/work/work.lib.php
excludes_analyse:
- %rootDir%/../../../tests/*
- %rootDir%/../../../main/webservices/*
- %rootDir%/../../../main/inc/lib/pear/*
- %rootDir%/../../../main/inc/lib/nusoap/*
- %rootDir%/../../../main/inc/lib/search/*
- %rootDir%/../../../src/CoreBundle/Migrations/Schema/*
level: max
Loading…
Cancel
Save