forked from codeigniter4/CodeIgniter4
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-bootstrap.php
More file actions
Latest commit
22 lines (17 loc) · 660 Bytes
/
Copy pathphpstan-bootstrap.php
File metadata and controls
22 lines (17 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// Analyse under the testing environment so the Tests\Support namespace is
// registered and its migrations are discovered for schema introspection.
$_SERVER['CI_ENVIRONMENT'] = 'testing';
require__DIR__ . '/system/util_bootstrap.php';
defined('OCI_COMMIT_ON_SUCCESS') || define('OCI_COMMIT_ON_SUCCESS', 32);
foreach ([
'app/Config',
] as$directory) {
$iterator = newRecursiveIteratorIterator(newRecursiveDirectoryIterator($directory));
/** @var SplFileInfo $file */
foreach ($iteratoras$file) {
if ($file->isFile() && $file->getExtension() === 'php') {
require_once$file->getRealPath();
}
}
}