Skip to content

Commit

Permalink
Use default config name of phpunit and phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jan 4, 2024
1 parent 908419d commit d0ce1f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
php-version: [ '8.1', '8.2' ]
swoole-version: [ 'v5.0.3', 'v5.1.0', 'master' ]
php-version: [ '8.1', '8.2', '8.3' ]
swoole-version: [ 'v5.0.3', 'v5.1.1', 'master' ]
max-parallel: 5
env:
SW_VERSION: ${{ matrix.swoole-version }}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
"post-autoload-dump": [
"rm -rf runtime/container"
],
"analyse": "phpstan analyse --memory-limit 512M -l 0 -c phpstan.neon ./app ./config",
"analyse": "phpstan analyse --memory-limit 512M",
"cs-fix": "php-cs-fixer fix $1",
"start": "php ./bin/hyperf.php start",
"test": "co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
"test": "co-phpunit --prepend test/bootstrap.php --colors=always",
"rector": "rector process --clear-cache"
}
}
4 changes: 4 additions & 0 deletions phpstan.neon → phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ includes:
# 需要执行 composer require phpstan/phpstan-deprecation-rules --dev
# - vendor/phpstan/phpstan-deprecation-rules/rules.neon
parameters:
level: 0
paths:
- app
- config
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
Expand Down
File renamed without changes.

0 comments on commit d0ce1f2

Please sign in to comment.