Skip to content

Commit

Permalink
DPIB-496: Fixed CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiseev committed Sep 11, 2024
1 parent ed1d614 commit de569c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- name: Run CodeStyle checks
run: composer cs-check

- name: PHPStan setup
run: composer stan-setup

- name: Run PHPStan
run: composer stan

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"scripts": {
"cs-check": "phpcs -p -s --standard=vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml src/",
"cs-fix": "phpcbf -p --standard=vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml src/",
"stan": "phpstan analyse -c phpstan.neon -l 8 src/",
"stan-setup": "cp composer.json composer.backup && COMPOSER_MEMORY_LIMIT=-1 composer require --dev phpstan/phpstan:^0.12 && mv composer.backup composer.json"
"stan": "phpstan analyse -c phpstan.neon -l 8 src/"
},
"extra": {
"branch-alias": {
Expand All @@ -34,7 +33,8 @@
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": false
}
}
}
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ parameters:
- src/
ignoreErrors:
- '#Call to method .+ on an unknown class .+Transfer#'
- '#Parameter .+ of method .+ has invalid typehint type .+Transfer#'
- '#Return typehint of method .+ has invalid type .+Transfer#'
- '#Instantiated class .+Transfer not found#'
- '#Method .+ has invalid return type .+Transfer#'
- '#Parameter .+Transfer of method .+ has invalid type .+Transfer.#'

0 comments on commit de569c1

Please sign in to comment.