include phpstan
This commit is contained in:
parent
2982a94f5f
commit
6d0d250075
2 changed files with 22 additions and 1 deletions
|
@ -33,4 +33,11 @@ Documentation for Bludit v4
|
|||
-------
|
||||
There is a new branch for the Documentation in english for Bludit v4.
|
||||
|
||||
https://github.com/bludit/documentation-english/tree/v4.0
|
||||
https://github.com/bludit/documentation-english/tree/v4.0
|
||||
|
||||
PHPStan
|
||||
-------
|
||||
https://phpstan.org/
|
||||
```
|
||||
docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan:0.12.89 analyse -c /app/phpstan.neon /app
|
||||
```
|
14
phpstan.neon
Normal file
14
phpstan.neon
Normal file
|
@ -0,0 +1,14 @@
|
|||
parameters:
|
||||
phpVersion: 70100 # PHP 7.1 - https://github.com/phpstan/phpstan/blob/master/playground-api/handler.ts#L38
|
||||
#phpVersion: 70200 # PHP 7.2
|
||||
#phpVersion: 70300 # PHP 7.3
|
||||
#phpVersion: 70400 # PHP 7.4
|
||||
#phpVersion: 80000 # PHP 8.0
|
||||
level: 0
|
||||
excludePaths:
|
||||
analyse:
|
||||
- bl-kernel/helpers/simple-image.class.php
|
||||
ignoreErrors:
|
||||
-
|
||||
message: '#Array has 2 duplicate keys with value#'
|
||||
path: bl-kernel/helpers/text.class.php
|
Loading…
Reference in a new issue