magento_enrich
Builds a method-chain enrichment index from scanned PHP files to store null-guard analysis, enabling instant O(1) null-safety queries without multiple grep calls.
Instructions
Build the method-chain enrichment index. Scans all vendor/ PHP files for two-step method chains (->firstMethod()->secondMethod()) and analyses whether each call has a null guard in surrounding code. Results stored in .magector/data.db. Run this once after magento_index, then use magento_find_null_risks for instant O(1) null-safety queries instead of 20+ grep calls. Also runs automatically after magento_index completes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||