Skip to content

Commit ac30322

Browse files
committed
Move bootstrap.php to Db component, update config files
1 parent 221c4fd commit ac30322

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.php-cs-fixer.dist.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
__DIR__ . '/tests/fixtures',
99
__DIR__ . '/tests/3rdparty',
1010
__DIR__ . '/scripts',
11+
__DIR__ . '/tools/apigen/src',
1112
])
1213
->append([
13-
__DIR__ . '/bootstrap.php',
1414
__DIR__ . '/src/Toolkit/Sli/sli',
15+
__DIR__ . '/tests/bootstrap.php',
1516
__DIR__ . '/tests/phpstan-conditional.php',
1617
__DIR__ . '/tests/test-sli',
1718
__DIR__ . '/stubs/ADOConnection.stub',
1819
__DIR__ . '/stubs/ADORecordSet.stub',
20+
__DIR__ . '/.php-cs-fixer.dist.php',
1921
])
2022
->notPath('Utility/Reflect/MyClassWithDnfTypes.php');
2123

.prettyphp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"tests/fixtures",
88
"tests/legacy",
99
"tests/unit",
10+
"tests/bootstrap.php",
1011
"tests/phpstan-conditional.php",
1112
"tests/test-sli",
1213
"tools/apigen",
13-
".php-cs-fixer.dist.php",
14-
"bootstrap.php"
14+
".php-cs-fixer.dist.php"
1515
],
1616
"includeIfPhp": "/(\\/sli|\\.stub)$/",
1717
"enable": [

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"src/Toolkit/Polyfill/stubs/"
8787
],
8888
"files": [
89-
"bootstrap.php"
89+
"src/Toolkit/Db/bootstrap.php"
9090
]
9191
},
9292
"autoload-dev": {

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ parameters:
1212
- tests/3rdparty
1313
- tests/fixtures
1414
- tests/unit
15+
- tests/bootstrap.php
1516
- tests/phpstan-conditional.php
1617
- tests/test-sli
17-
- bootstrap.php
1818
stubFiles:
1919
- stubs/ADOConnection.stub
2020
- stubs/ADORecordSet.stub
File renamed without changes.

src/Toolkit/Db/composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@
1515
},
1616
"require": {
1717
"php": ">=7.4",
18-
"adodb/adodb-php": "^5.22",
18+
"adodb/adodb-php": "^5",
1919
"salient/contracts": "self.version",
2020
"salient/core": "self.version",
2121
"salient/utils": "self.version"
2222
},
2323
"autoload": {
2424
"psr-4": {
2525
"Salient\\Db\\": ""
26-
}
26+
},
27+
"files": [
28+
"bootstrap.php"
29+
]
2730
},
2831
"config": {
2932
"sort-packages": true

0 commit comments

Comments
 (0)