Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
132 lines (127 loc) · 3.37 KB
/
Copy pathcomposer.json
File metadata and controls
132 lines (127 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "staabm/phpstan-dba",
"type": "phpstan-extension",
"description": "PHPStan based SQL static analysis and type inference for the database access layer",
"license": "MIT",
"keywords": ["dev", "phpstan", "phpstan-extension", "static analysis", "database access layer", "code quality"],
"require": {
"php": "^7.4 || ^8.0",
"composer-runtime-api": "^2.0",
"composer/semver": "^3.2",
"phpstan/phpstan": "^2.3.0"
},
"require-dev": {
"ext-mysqli": "*",
"ext-pdo": "*",
"dibi/dibi": "^4.2",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^8.5|^9.5",
"symplify/easy-coding-standard": "^12.5",
"tomasvotruba/unused-public": "^2.2",
"vlucas/phpdotenv": "^5.4"
},
"conflict": {
"sqlftw/sqlftw": "<0.1.16",
"phpstan/phpstan": "2.1.55||2.1.56||2.2.0||2.2.1",
"doctrine/dbal": "<3||>=5"
},
"autoload": {
"psr-4": {
"staabm\\PHPStanDba\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"staabm\\PHPStanDba\\Tests\\Fixture\\": "tests/default/Fixture/",
"staabm\\PHPStanDba\\Tests\\": "tests/"
},
"classmap": [
"tests/default/data/",
"tests/defaultFetchAssoc/data/",
"tests/defaultFetchNumeric/data/",
"tests/rules/data/",
"tests/stringify/data/",
"tests/sqlAst/data"
]
},
"scripts": {
"csfix": [
"vendor/bin/ecs --ansi --fix"
],
"test": [
"@build",
"@putenv DBA_REFLECTOR=mysqli",
"@phpunit",
"@phpstan",
"@putenv DBA_REFLECTOR=pdo-mysql",
"@phpunit",
"@phpstan",
"@csfix",
"@clean"
],
"record": [
"@build",
"phpstan clear-result-cache",
"@putenv DBA_MODE=recording",
"@putenv DBA_REFLECTOR=mysqli",
"@phpunit",
"@phpstan",
"@putenv DBA_REFLECTOR=pdo-mysql",
"@phpunit",
"@phpstan",
"@csfix",
"@clean"
],
"phpstan": [
"phpstan analyse -c phpstan.neon.dist",
"phpstan analyse -c tests/default/config/phpstan.neon.dist",
"phpstan analyse -c tests/sqlAst/config/phpstan.neon.dist",
"phpstan analyse -c tests/rules/config/phpstan.neon.dist",
"phpstan analyse -c tests/stringify/config/phpstan.neon.dist",
"phpstan analyse -c tests/defaultFetchAssoc/config/phpstan.neon.dist",
"phpstan analyse -c tests/defaultFetchNumeric/config/phpstan.neon.dist"
],
"phpstan-baseline": [
"@build",
"phpstan analyse -c phpstan.neon.dist --generate-baseline",
"@clean"
],
"phpunit": [
"phpunit -c tests/default/config/phpunit.xml",
"phpunit -c tests/sqlAst/config/phpunit.xml",
"phpunit -c tests/rules/config/phpunit.xml",
"phpunit -c tests/stringify/config/phpunit.xml",
"phpunit -c tests/defaultFetchAssoc/config/phpunit.xml",
"phpunit -c tests/defaultFetchNumeric/config/phpunit.xml"
],
"build": [
"composer require sqlftw/sqlftw --ignore-platform-req=php+",
"composer require doctrine/dbal:3.* --ignore-platform-req=php+"
],
"clean": [
"composer remove sqlftw/sqlftw --ignore-platform-req=php+",
"composer remove doctrine/dbal --ignore-platform-req=php+"
]
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true,
"phpstan/extension-installer": true
}
},
"extra": {
"phpstan": {
"includes": [
"config/dba.neon"
]
},
"branch-alias": {
"dev-main": "0.3.x-dev"
}
}
}