Skip to content

Commit 36f7a04

Browse files
authored
Merge pull request #173 from adriansuter/patch-composer-scripts
Add scripts to composer and update code sniffer
2 parents 948160a + 4403a9f commit 36f7a04

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require-dev": {
2727
"phpunit/phpunit": "^8.5",
2828
"psr/http-factory": "^1.0",
29-
"squizlabs/php_codesniffer": "^3.4.2",
29+
"squizlabs/php_codesniffer": "^3.5",
3030
"phpstan/phpstan": "^0.11.15"
3131
},
3232
"autoload": {
@@ -38,5 +38,15 @@
3838
"psr-4": {
3939
"Slim\\Tests\\": "tests"
4040
}
41+
},
42+
"scripts": {
43+
"test": [
44+
"@phpunit",
45+
"@phpcs",
46+
"@phpstan"
47+
],
48+
"phpunit": "phpunit",
49+
"phpcs": "phpcs",
50+
"phpstan": "phpstan analyse src --memory-limit=-1"
4151
}
4252
}

0 commit comments

Comments
 (0)