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:
Divarion_D
2026-08-07 20:51:02 +03:00
parent 2466ddfc3e
commit 24736873f6
2 changed files with 9 additions and 13 deletions
+6 -9
View File
@@ -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.