We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf3a4c0 + a7db1c8 commit a36d6e7Copy full SHA for a36d6e7
1 file changed
src/Template/rector.php
@@ -51,6 +51,11 @@
51
__DIR__ . '/tests/',
52
]);
53
54
+ // Include Composer's autoload - required for global execution, remove if running locally
55
+ $parameters->set(Option::AUTOLOAD_PATHS, [
56
+ __DIR__ . '/vendor/autoload.php',
57
+ ]);
58
+
59
// Do you need to include constants, class aliases, or a custom autoloader?
60
$parameters->set(Option::BOOTSTRAP_FILES, [
61
realpath(getcwd()) . '/vendor/codeigniter4/framework/system/Test/bootstrap.php',
@@ -77,6 +82,11 @@
77
82
__DIR__ . '/tests',
78
83
],
79
84
85
+ // Ignore files that should not be namespaced
86
+ NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [
87
+ __DIR__ . '/app/Helpers',
88
+ ],
89
80
90
// May load view files directly when detecting classes
81
91
StringClassNameToClassConstantRector::class,
92
0 commit comments