Add PHPStan and bump to max level (#139)

* composer: put require- together

* add phpstan

* add phpstan to travis

* phpstan fixes

* phpstan fixes

* phpstan fixes

* drop null defaults since every property is null by default

* DescriptionFactory: fix parse nullable type

* travis: add phpstan max

* travis: fix phpstan config
This commit is contained in:
Tomáš Votruba
2017-12-02 19:12:29 +01:00
committed by Jaap van Otterdijk
parent c19b4d170c
commit bab88701ea
22 changed files with 1028 additions and 41 deletions
+6 -5
View File
@@ -15,6 +15,12 @@
"phpdocumentor/type-resolver": "^0.4",
"webmozart/assert": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.4",
"doctrine/instantiator": "^1.0",
"phpstan/phpstan": "^0.9.0"
},
"autoload": {
"psr-4": {
"phpDocumentor\\Reflection\\": "src"
@@ -25,11 +31,6 @@
"phpDocumentor\\Reflection\\": "tests/unit"
}
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.4",
"doctrine/instantiator": "^1.0"
},
"extra": {
"branch-alias": {
"dev-master": "4.x-dev"