Skip to content

Commit 584feaa

Browse files
authored
support customized local configuration files for PHPStan and PHPUnit (#110)
1 parent 6a550f5 commit 584feaa

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ vendor/
1212
.phpunit*
1313
*.cache
1414
composer.lock
15-
.vscode/
15+
.vscode/
16+
/phpstan.neon
17+
/phpunit.xml

β€Žcomposer.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
"post-autoload-dump": [
7070
"rm -rf runtime/container"
7171
],
72-
"test": "co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
72+
"test": "co-phpunit --prepend test/bootstrap.php --colors=always",
7373
"cs-fix": "php-cs-fixer fix $1",
74-
"analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
74+
"analyse": "phpstan analyse --memory-limit 300M",
7575
"start": [
7676
"Composer\\Config::disableProcessTimeout",
7777
"php ./bin/hyperf.php start"

β€Žphpstan.neonβ€Ž renamed to β€Žphpstan.neon.distβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# vendor/bin/phpstan analyse app --memory-limit 200M -l 0
55
#
66
parameters:
7+
level: 0
8+
paths:
9+
- ./app
10+
- ./config
711
reportUnmatchedIgnoredErrors: false
812
ignoreErrors:
913
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
File renamed without changes.

0 commit comments

Comments
Β (0)