mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-18 20:03:17 +02:00
chore(phpstan): correct stale "no Composer/PSR-4" bootstrap comments
phpstan-bootstrap.php and phpstan.dist.neon claimed the project "has no Composer and no PSR-4 namespaces" and referenced the removed src/autoload.php — both false since the Composer PSR-4 migration (and self-contradicted by the neon's own excludePaths note about src/vendor/autoload.php). Comment-only: they now state the bootstrap defines constants and deliberately wires no project autoloader (PHPStan discovers symbols via paths + scanDirectories). No behavior change.
This commit is contained in:
@@ -3,15 +3,12 @@
|
||||
/**
|
||||
* PHPStan bootstrap for XC_VM.
|
||||
*
|
||||
* The project has no Composer and no PSR-4 namespaces. We deliberately do NOT
|
||||
* include src/autoload.php here: registering the runtime class-map autoloader
|
||||
* makes PHPStan execute a full live directory rescan on every class miss
|
||||
* (the igbinary cache is unavailable on a plain CLI), which exhausts memory
|
||||
* and crashes the parallel workers.
|
||||
*
|
||||
* Instead, PHPStan discovers every class/interface/function on its own by
|
||||
* statically scanning the directories listed under `paths` and
|
||||
* `scanDirectories` in phpstan.dist.neon — no project code is executed.
|
||||
* The project uses Composer PSR-4, but this bootstrap deliberately does NOT wire
|
||||
* a project autoloader. PHPStan discovers every class/interface/function itself
|
||||
* by statically scanning the directories listed under `paths` and
|
||||
* `scanDirectories` in phpstan.dist.neon — no project code is executed. (The
|
||||
* Composer-installed phpstan binary loads src/vendor/autoload.php for its own
|
||||
* dependencies.)
|
||||
*
|
||||
* This file only defines the global constants the codebase references so that
|
||||
* analysis of constant-dependent expressions stays accurate.
|
||||
|
||||
Reference in New Issue
Block a user