Skip to content

Commit 71d3ab8

Browse files
co config cleanup
1 parent 86e6eb6 commit 71d3ab8

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

ci/phpstan/config.neon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ includes:
55
parameters:
66
level: max
77
paths:
8+
- ../../ci
89
- ../../src
910
- ../../tests
1011

11-
checkMissingIterableValueType: false
1212
reportUnmatchedIgnoredErrors: false
13+
1314
ignoreErrors:
15+
- identifier: missingType.iterableValue
16+
1417
- '#Parameter \#1 \$phpArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToDatabaseValue\(\) expects array\|null, string given.#'
1518
- '#Parameter \#1 \$postgresArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToPHPValue\(\) expects string\|null, int given.#'
1619
- '#Property MartinGeorgiev\\Doctrine\\ORM\\Query\\AST\\Functions\\Cast::\$sourceType \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string#'

composer.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,20 @@
6060
},
6161

6262
"scripts": {
63+
"deptrac": [
64+
"deptrac analyze --config-file=./ci/deptrac/config.yml --cache-file=./ci/deptrac/.cache --no-interaction --no-progress"
65+
],
6366
"php-cs-fixer": [
64-
"PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config='./ci/php-cs-fixer/config.php' --show-progress=none --no-interaction --diff -v"
67+
"PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config=./ci/php-cs-fixer/config.php --show-progress=none --no-interaction --diff -v"
68+
],
69+
"phpstan": [
70+
"phpstan analyse --configuration=./ci/phpstan/config.neon"
6571
],
6672
"phpunit": [
67-
"phpunit --configuration='./ci/phpunit/config.xml'"
73+
"XDEBUG_MODE=coverage phpunit --configuration='./ci/phpunit/config.xml"
6874
],
6975
"rector": [
70-
"rector --config='./ci/rector/config.php' --ansi --no-progress-bar"
76+
"rector --config=./ci/rector/config.php --ansi --no-progress-bar"
7177
],
7278

7379
"check-code-style": [
@@ -79,14 +85,14 @@
7985
"@php-cs-fixer"
8086
],
8187
"run-static-analysis": [
82-
"phpstan analyse --configuration='./ci/phpstan/config.neon'",
83-
"deptrac analyze --config-file='./ci/deptrac/config.yml' --cache-file='./ci/deptrac/.cache' --no-interaction --no-progress"
88+
"@phpstan",
89+
"@deptrac"
8490
],
8591
"run-tests": [
8692
"@phpunit"
8793
],
8894
"run-tests-with-clover": [
89-
"@phpunit --coverage-clover './build/logs/clover.xml'"
95+
"@phpunit --coverage-clover=./var/logs/clover.xml"
9096
]
9197
},
9298

0 commit comments

Comments
 (0)