Skip to content

Commit aa3cce0

Browse files
committed
Added psalm
1 parent 20a0c39 commit aa3cce0

11 files changed

+886
-20
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ https://dev.mysql.com/doc/refman/8.0/en/insert-optimization.html
99

1010
## Installation
1111

12+
**Requires Laravel version > 8**
13+
1214
```bash
1315
composer require ellgreen/laravel-loadfile
1416
```

composer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ellgreen/laravel-loadfile",
3-
"description": "",
3+
"description": "A package to help with loading files into MySQL tables",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
@@ -27,19 +27,22 @@
2727
"require-dev": {
2828
"phpunit/phpunit": "^9",
2929
"orchestra/testbench": "^6.17",
30-
"squizlabs/php_codesniffer": "^3.6"
30+
"squizlabs/php_codesniffer": "^3.6",
31+
"vimeo/psalm": "^4.7"
3132
},
3233
"scripts": {
3334
"test-unit": "php ./vendor/bin/phpunit tests/Unit",
3435
"test-unit-coverage": "php ./vendor/bin/phpunit tests/Unit --coverage-html .coverage/unit",
3536
"check": [
3637
"@docker-up",
3738
"@docker-test",
38-
"@docker-cs"
39+
"@docker-cs",
40+
"@docker-static-analysis"
3941
],
4042
"docker-up": "docker compose up -d database",
4143
"docker-test": "docker compose run --rm app php ./vendor/bin/phpunit",
4244
"docker-test-coverage": "docker compose run --rm app php ./vendor/bin/phpunit --coverage-html .coverage/all",
45+
"docker-static-analysis": "docker compose run --rm app php ./vendor/bin/psalm",
4346
"docker-cs": "docker compose run --rm app php ./vendor/bin/phpcs --standard=PSR12 src/"
4447
},
4548
"extra": {

0 commit comments

Comments
 (0)