File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
require __DIR__ . '/system/util_bootstrap.php ' ;
4
4
5
- if (! defined ('OCI_COMMIT_ON_SUCCESS ' )) {
6
- define ('OCI_COMMIT_ON_SUCCESS ' , 32 );
5
+ defined ('OCI_COMMIT_ON_SUCCESS ' ) || define ('OCI_COMMIT_ON_SUCCESS ' , 32 );
6
+
7
+ foreach ([
8
+ 'app/Config ' ,
9
+ ] as $ directory ) {
10
+ $ iterator = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ directory ));
11
+
12
+ /** @var SplFileInfo $file */
13
+ foreach ($ iterator as $ file ) {
14
+ if ($ file ->isFile () && $ file ->getExtension () === 'php ' ) {
15
+ require_once $ file ->getRealPath ();
16
+ }
17
+ }
7
18
}
Original file line number Diff line number Diff line change 71
71
])
72
72
// do you need to include constants, class aliases or custom autoloader? files listed will be executed
73
73
->withBootstrapFiles ([
74
- __DIR__ . '/system/util_bootstrap .php ' ,
74
+ __DIR__ . '/phpstan-bootstrap .php ' ,
75
75
])
76
76
->withPHPStanConfigs ([
77
77
__DIR__ . '/phpstan.neon.dist ' ,
You can’t perform that action at this time.
0 commit comments