add phpstan config

This commit is contained in:
Andrew Dolgov 2021-02-21 23:19:58 +03:00
parent f6bfb89b29
commit 6f29ecbbb9
1 changed files with 17 additions and 0 deletions

17
phpstan.neon Normal file
View File

@ -0,0 +1,17 @@
parameters:
level: 5
ignoreErrors:
- '#Constant.*not found#'
- '#Call to an undefined method DOMNode::getAttribute\(\).#'
- '#PHPDoc tag @param has invalid value#'
- message: '##'
paths:
- lib/*
- vendor/*
- plugins/*/vendor/*
- plugins.local/*/vendor/*
excludePaths:
- node_modules/*
paths:
- .