Commit dac181b
feat(plugins): add preserve_autoload option for PHP plugin configuration
When PHP linter extensions like Larastan bootstrap the Laravel
application, they need the project's PSR-4 namespace mappings in the
sandbox autoloader. Previously, filter_composer unconditionally stripped
autoload/autoload-dev sections, causing "Class not found" crashes.
This adds a preserve_autoload boolean (default false) that, when
enabled, preserves autoload sections and creates symlinks from the
sandbox to the project root so Composer's generated autoloader resolves
paths to the actual source files.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c7f67bb commit dac181b
File tree
3 files changed
+426
-3
lines changed- qlty-check/src
- planner
- tool/php
- qlty-config/src/config
3 files changed
+426
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
0 commit comments