Specify PHP version for PHPCS
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
parent
2532e87029
commit
202eae5136
|
@ -126,6 +126,9 @@ phpcs:
|
||||||
image: composer:latest
|
image: composer:latest
|
||||||
stage: validate
|
stage: validate
|
||||||
script:
|
script:
|
||||||
|
# tell phpcs the PHP version to check against
|
||||||
|
# we are using the min suppported version here
|
||||||
|
- ./vendor/bin/phpcs --config-set php_version 80100
|
||||||
- ./vendor/bin/phpcs -p --no-colors --basepath="$PWD"
|
- ./vendor/bin/phpcs -p --no-colors --basepath="$PWD"
|
||||||
|
|
||||||
phpstan:
|
phpstan:
|
||||||
|
|
|
@ -14,8 +14,15 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phpcs": "phpcs -p --cache",
|
"phpcs:setup": "phpcs --config-set php_version 80100",
|
||||||
"phpcbf": "phpcbf -p",
|
"phpcs": [
|
||||||
|
"composer phpcs:setup",
|
||||||
|
"phpcs -p --cache"
|
||||||
|
],
|
||||||
|
"phpcbf": [
|
||||||
|
"composer phpcs:setup",
|
||||||
|
"phpcbf -p"
|
||||||
|
],
|
||||||
"phpstan": "phpstan"
|
"phpstan": "phpstan"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
Loading…
Reference in New Issue