Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions phpstan-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

require __DIR__ . '/system/util_bootstrap.php';

if (! defined('OCI_COMMIT_ON_SUCCESS')) {
define('OCI_COMMIT_ON_SUCCESS', 32);
defined('OCI_COMMIT_ON_SUCCESS') || define('OCI_COMMIT_ON_SUCCESS', 32);

foreach ([
'app/Config',
] as $directory) {
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));

/** @var SplFileInfo $file */
foreach ($iterator as $file) {
if ($file->isFile() && $file->getExtension() === 'php') {
require_once $file->getRealPath();
}
}
}
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
])
// do you need to include constants, class aliases or custom autoloader? files listed will be executed
->withBootstrapFiles([
__DIR__ . '/system/util_bootstrap.php',
__DIR__ . '/phpstan-bootstrap.php',
])
->withPHPStanConfigs([
__DIR__ . '/phpstan.neon.dist',
Expand Down